def ns
import bolt@1.27.0.0/src/lsp/checker/names.bend as Namesimport Base
20# an import's namespace: its path, without a leading `./` or its `.bend`
21def ns(path: String) -> String:
22 +pp = ns.lead(path)
23 Bool.pick(String, String.ends_with(pp, ".bend"), String.take(pp, Nat.sub(String.length(pp), 5n)), pp)