def limiting_reset

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

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

349def limiting_reset(ws: List<&2, Win>, acc: Maybe<&2, U32>) -> Maybe<&2, U32>:
350  match ws:
351    case Nil{}:
352      acc
353    case Con{Win{p, r}, t}:
354      limiting_reset(t, limiting.step(U32.is_ge(p, 1000), r, acc))

Uses (6)

Used by (1)