def starts
import stelliferous@0.0.2.0/tensor_file.bend as TensorFileimport Base
179def starts(pattern: List<&2,U32>,bytes: List<&2,U32>) -> Bool:
180 match pattern bytes:
181 case Nil{} bytes: True{}
182 case Con{first,rest} Nil{}: False{}
183 case Con{first,rest} Con{byte,more}: U32.is_eq(first,byte) && starts(rest,more)