def base.go
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
105# the component carried so far, kept when nothing follows it. The list is the
106# first argument because that is the one the walk shrinks.
107def base.go(ps: List<&2, String>, +last: String) -> String:
108 match ps:
109 case []:
110 last
111 case +h2 <> t:
112 base.go(t, h2)