def limiting.step

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

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

342def limiting.step(full: Bool, r: Maybe<&2, U32>, acc: Maybe<&2, U32>) -> Maybe<&2, U32>:
343  match full r:
344    case True{} Some{x}:
345      max_acc(acc, x)
346    case _ _:
347      acc

Uses (4)

Used by (1)