Function btreemap-or-insertpub

Source
:fn(pub) btreemap-or-insert ( v (BTreeEntry k v) (BTreeMap k v)  v (BTreeMap k v) )
Description

.or-insert — free fn rather than method because dispatch would need to pick between BTreeEntry and BTreeMap as Self. If the entry is Occupied, the existing value surfaces; if Vacant, the default inserts. Stack effect matches the spec: default and entry pop, updated value and map push.