def split1
import ezx@1.11.0.0/src/git/git.bend as Gitimport Base
594# a string cut at the first of a character, the character dropped; no hit leaves
595# the whole string on the left
596def split1(+sep: Char, text: String) -> Cut:
597 match text:
598 case SNil{}:
599 Cut{"", ""}
600 case SCon{+h, +t}:
601 split1.step(Char.is_eq(h, sep), h, t, _u => split1(sep, t))