def join
import bolt@1.27.0.0/src/lsp/path.bend as Pathimport Base
17# dir and rel as one absolute path, its `.` and `..` resolved
18def join(dir: String, rel: String) -> String:
19 "/" ++ String.join(List.reverse(&2, String, norm(String.split(dir ++ "/" ++ rel, '/'), [])), "/")