def look

ezx@1.11.0.0 · src/fetch/world.bend:136

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

Uses (7)

Used by (1)