def ns

bolt@1.27.0.0 · src/lsp/checker/names.bend:20

import bolt@1.27.0.0/src/lsp/checker/names.bend as Names
import 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)

Uses (7)

Used by (1)