def cascade.pick

ezx@1.11.0.0 · src/ws/moved.bend:267

import ezx@1.11.0.0/src/ws/moved.bend as Moved
import Base

267# the moves once a round is known to change them or not; the rounds after it
268# arrive as a thunk, so the rounds stop where the moves do
269def cascade.pick(same: Bool, ms: List<&2, Shift>, rest: Unit -> List<&2, Shift>) -> List<&2, Shift>:
270  match same:
271    case True{}:
272      ms
273    case False{}:
274      rest(Unit{})

Uses (4)

Used by (1)