def look

ezx@1.11.0.0 · src/tool/world.bend:222

import ezx@1.11.0.0/src/tool/world.bend as World
import 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))

Uses (7)

Used by (1)