def cut.cons

ezx@1.11.0.0 · src/ws/workspace.bend:26

import ezx@1.11.0.0/src/ws/workspace.bend as Workspace
import 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}

Uses (3)

Used by (2)