def wants.pick

bolt@1.27.0.0 · src/lint/plan.bend:330

import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/lint/world.bend as W

330# the listings still open, or, once there are none, the texts still open
331def wants.pick(ls: List<&2, W.Ask>, +world: W.World) -> List<&2, W.Ask>:
332  match ls:
333    case Nil{}:
334      unanswered(texts(world), world)
335    case Con{a, rest}:
336      a <> rest

Uses (5)

Used by (1)