def look

ezx@1.11.0.0 · src/pub/world.bend:96

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

Uses (7)

Used by (1)