def ups

bend-lint-rules@0.2.0.0 · layout/canon_import_path.bend:34

import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPath
import Base

34# Each segment of `from` as "..", then `to`.
35def ups(from: List<&2, String>, to: List<&2, String>) -> List<&2, String>:
36  match from:
37    case Nil{}:
38      to
39    case Con{f, rest}:
40      ups(rest, ".." <> to)

Uses (2)

Used by (1)