def cut.at

ezx@1.11.0.0 · src/sha/nar.bend:235

import ezx@1.11.0.0/src/sha/nar.bend as Nar
import 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)

Uses (5)

Used by (1)