def cut

ezx@1.11.0.0 · src/pkg/pkg.bend:138

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

138# a line cut at its blanks, read from the back
139def cut(line: String) -> Cut:
140  match line:
141    case SNil{}:
142      Cut{"", []}
143    case SCon{+h, t}:
144      cut.at(blank(h), h, cut(t))

Uses (5)

Used by (1)