def path.norm.pop.if

bend-kit-files@0.3.1.0 · files.bend:30

import bend-kit-files@0.3.1.0/files.bend as Files
import Base

30def path.norm.pop.if(up: Bool, h: String, t: List<&2, String>) ->
31  List<&2, String>:
32  match up:
33    case True{}:
34      ".." <> (h <> t)
35    case False{}:
36      t

Uses (3)

Used by (1)