def up.back
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
32# a climb past a component that is itself a climb keeps both
33def up.back(same: Bool, head: String, rest: List<&2, String>) -> List<&2, String>:
34 match same:
35 case True{}:
36 ".." <> (head <> rest)
37 case False{}:
38 rest