Map.has: def of Base
Import: import Base
Lines 2902-2909 of Base/base.bend: https://jend.leeeet.dev/read.txt?path=Base/base.bend&start_line=2902&end_line=2909
import Base
def Map.has(-a: Quant, -V: Kind(a), m: Map, key: String) -> Map & Bool:
match m:
case MTip{}:
(MTip{}, False{})
case MLeaf{k, v}:
Map.has.leaf(a, V, v, String.cmp(key, k))
case MNode{+pos, lo, hi}:
Map.has.go(a, V, MNode{pos, lo, hi}, Map.bit(key, pos))
Uses (9):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.bit
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.has.go
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.has.leaf
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.cmp