Map.put: def of Base
Import: import Base
Lines 2752-2759 of Base/base.bend: https://jend.leeeet.dev/read.txt?path=Base/base.bend&start_line=2752&end_line=2759
import Base
def Map.put(-a: Quant, -V: Kind(a), m: Map, key: String, x: V) -> Map:
match m:
case MTip{}:
MLeaf{key, x}
case MLeaf{k, v}:
MLeaf{k, x}
case MNode{+pos, lo, hi}:
Map.put.go(a, V, MNode{pos, lo, hi}, x, Map.bit(key, pos))
Uses (4):
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.put.go
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String