def look
import ezx@1.11.0.0/src/fetch/world.bend as Worldimport Base
136# the first answer given to a question
137def look(rs: List<&2, Reply>, +want: String) -> Heard:
138 match rs:
139 case []:
140 Open{}
141 case Reply{ask, answer} <> t:
142 look.step(String.eq(key(ask), want), answer, _u => look(t, want))