zuse: added docstring and warning

This commit is contained in:
Logan Allen 2020-07-21 14:39:42 -07:00
parent 64a30fea62
commit f76759b9e0

View File

@ -7071,6 +7071,9 @@
--
--
::
:: +mop: constructs and validates ordered ordered map based on key,
:: val, and comparator gate
::
++ mop
|* [key=mold value=mold]
|= ord=$-([key key] ?)
@ -7088,6 +7091,9 @@
:: smallest key can be popped off the head. If $key is `@` and
:: .compare is +lte, then the numerically smallest item is the head.
::
:: WARNING: ordered-map will not work properly if two keys can be
:: unequal under noun equality but equal via the compare gate
::
++ ordered-map
|* [key=mold val=mold]
=> |%