def idx.join
import bolt@1.27.0.0/src/lsp/semantic.bend as Semanticimport Base
171# a node whose half down a bit is sub, and the other half far
172def idx.join(bb: Bool, sub: Index, far: Index) -> Index:
173 match bb:
174 case True{}:
175 INode{sub, far}
176 case False{}:
177 INode{far, sub}