def look
import ezx@1.11.0.0/src/pub/world.bend as Worldimport Base
96# the first answer given to a question
97def look(rs: List<&2, Reply>, +want: String) -> Heard:
98 match rs:
99 case []:
100 Open{}
101 case Reply{ask, answer} <> t:
102 look.step(String.eq(key(ask), want), answer, _u => look(t, want))