def cut.at
import ezx@1.11.0.0/src/sha/nar.bend as Narimport Base
235# one char of the listing read: a NUL ends a field, any other char is the
236# next of the field it is in
237def cut.at(ends: Bool, +ch: Char, fs: List<&2, String>) -> List<&2, String>:
238 match ends:
239 case True{}:
240 "" <> fs
241 case False{}:
242 push(ch, fs)