def base.last
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
114# the last component of a path
115def base.last(ps: List<&2, String>) -> String:
116 match ps:
117 case []:
118 ""
119 case +h <> t:
120 base.go(t, h)
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
114# the last component of a path
115def base.last(ps: List<&2, String>) -> String:
116 match ps:
117 case []:
118 ""
119 case +h <> t:
120 base.go(t, h)