Split.split.put: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/split.bend as Split Lines 36-46 of bend-toon-codec@0.1.0.0/src/split.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/split.bend&start_line=36&end_line=46 import Base # Put a character in front of the token being built, or start a new token. def split.put(+c: U32, +sep: Bool, +r: List<&2, String>) -> List<&2, String>: match sep: case True{}: Con{SNil{}, r} case False{}: match r: case Con{h, rest}: Con{SCon{Chr{c}, h}, rest} case Nil{}: Nil{} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32