def up.back

ezx@1.11.0.0 · src/pkg/path.bend:32

import ezx@1.11.0.0/src/pkg/path.bend as Path
import 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

Uses (3)

Used by (1)