def after

stelliferous@0.0.2.0 · tensor_file.bend:196

import stelliferous@0.0.2.0/tensor_file.bend as TensorFile
import Base

196# The text after the first occurrence of the pattern.
197def after(text: List<&2,U32>,+pattern: List<&2,U32>) -> Maybe<&2,List<&2,U32>>:
198  match text:
199    case Nil{}: None{}
200    case Con{+byte,+rest}:
201      Bool.pick(Maybe<&2,List<&2,U32>>,starts(pattern,byte <> rest),Some{List.drop(&2,U32,byte <> rest,List.length(&2,U32,pattern))},after(rest,pattern))

Uses (7)

Used by (1)