def halve
import ezx@1.11.0.0/src/ez/target.bend as Targetimport Base
178# the word before its first slash and the word after it
179def halve(text: String) -> Halves:
180 match text:
181 case SNil{}:
182 Uncut{}
183 case SCon{+h, +t}:
184 halve.at(kind(h), h, t, _u => halve(t))