def next.any
bend-kit-journal@0.3.1.0 · journal.bend:96
import bend-kit-journal@0.3.1.0/journal.bend as Journal
import Base
96def next.any(~P: Type, ~S: Type, ~fits: S -> @+at:U32 -> @+n:U32 -> S & Bool, ~u32: S -> @+at:U32 -> S & U32, ~cut: S -> @+hs:U32 -> @+len:U32 -> S & P, ~skip: S -> @+hs:U32 -> @+len:U32 -> S, ~sum: P -> P & U32, +max: U32, r: S & Bool) -> Step<P, S>:
97 (s, some) = r
98 match some:
99 case True{}:
100 next.start(~P, ~S, ~fits, ~u32, ~cut, ~skip, ~sum, max, fits(s, 0, 8))
101 case False{}:
102 End{s}