def look
import ezx@1.11.0.0/src/tool/world.bend as Worldimport Base
222# the first answer given to a question
223def look(rs: List<&2, Reply>, +want: String) -> Heard:
224 match rs:
225 case []:
226 Open{}
227 case Reply{ask, answer} <> t:
228 look.step(String.eq(key(ask), want), answer, _u => look(t, want))