def cut.cons
import ezx@1.11.0.0/src/ws/workspace.bend as Workspaceimport Base
26# a list of segments with one more in front, when there was a list
27def cut.cons(+head: String, rest: Maybe<&2, List<&2, String>>) -> Maybe<&2, List<&2, String>>:
28 match rest:
29 case None{}:
30 None{}
31 case Some{ds}:
32 Some{head <> ds}