def next.head
bend-kit-journal@0.3.1.0 · journal.bend:71
import bend-kit-journal@0.3.1.0/journal.bend as Journal
import Base
71def next.head(~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, ok: Bool, +max: U32, +len: U32, s: S) -> Step<P, S>:
72 match ok:
73 case True{}:
74 next.size(~P, ~S, ~fits, ~u32, ~cut, ~skip, ~sum, U32.is_gt(len, max), len, s)
75 case False{}:
76 Bad{"length check mismatch", s}