type BoxMap<k, v> = iterative box choice { .delete => [k] self, .get => [k] Option<v>, .keys => List<k>, .list => List<(k) v>, .put => [k, v] self, .size => Nat, }
A non-linear ordered map interface.
.size— get the number of entries..keys— get the keys in map order..list— get all entries as(key) valuepairs..get(key)— look up a key..put(key, value)— return a map with that entry inserted or updated..delete(key)— return a map with that entry removed.
Since BoxMap is non-linear, updates return another BoxMap value.