def base.go
import bolt@1.27.0.0/src/paths.bend as Pathsimport Base
8# the last of the segments, or the one before when there are none
9def base.go(segs: List<&2, String>, last: String) -> String:
10 match segs:
11 case Nil{}:
12 last
13 case Con{s, rest}:
14 base.go(rest, s)