def root

bolt@1.26.0.0 · src/config.bend:231

import bolt@1.26.0.0/src/config.bend as Config
import Base

231# directories, innermost first, as a path from the root ending in `/`
232def root(ds: List<&2, String>, acc: String) -> String:
233  match ds:
234    case Nil{}:
235      "/" ++ acc
236    case Con{d, rest}:
237      root(rest, d ++ "/" ++ acc)

Uses (3)

Used by (1)