def split.of

bend-kit-bytes@0.3.3.0 · bytes.bend:522

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

522def split.of(cuts: List<&2, U32>, b: Bytes, +len: U32, +m: U32) -> List<&1, Bytes>:
523  match cuts:
524    case Nil{}:
525      Con{b, Nil{}}
526    case Con{+j, t}:
527      split.cut(t, slice(b, (j + m : U32), (len - j - m : U32)), j, m, Nil{})

Uses (7)

Used by (1)