def split.of
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport 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{})