def text.split
import ezsys@0.1.0.0/src/str.bend as Strimport Base
172# the pieces between the separators, in order; an empty separator splits
173# nothing
174def text.split(txt: String, +sep: String) -> List<&2, String>:
175 match sep:
176 case SNil{}:
177 [txt]
178 case SCon{sh, st}:
179 text.split.go(txt, 0n, SCon{sh, st})