def earliest_future

cswap-bend-cli@0.1.0.0 · poll.bend:328

import cswap-bend-cli@0.1.0.0/poll.bend as Poll
import Base

328def earliest_future(ws: List<&2, Win>, +now: U32, acc: Maybe<&2, U32>) -> Maybe<&2, U32>:
329  match ws:
330    case Nil{}:
331      acc
332    case Con{Win{p, r}, t}:
333      earliest_future(t, now, future.step(r, now, acc))

Uses (5)

Used by (1)