Index
MultiDict
This functor defines a multi-dimensional dictionary data structure, implemented by Oz' plain dictionaries. The key to a value in a multi-dimensional dictionary is a list Keys whose values are any combination of integers, atoms and names.

Functor

Import

Export

Define

proc{New X}
Returns a new empty multi-dimensional dictionary.


fun{Is X}
Tests whether X is a multi-dimensional dictionary.


proc{Put Dict Keys X}
Sets the item in Dict under Keys to X.


fun{Get Dict Keys}
Returns the item in Dict at Keys.


fun{CondGet Dict Keys DefVal}
Returns the item in Dict at Keys if Keys is valid, otherwise DefVal is retured.
NOTE: not thread-save.


fun{CondGetPutting Dict Keys X}
Returns the item in Dict at Keys if Keys is valid, otherwise otherwise put X at Keys and return that.
NOTE: not thread-save.


proc{RemoveAll Dict}
Removes all entries currently in Dict.


fun{Entries Dict}
Returns the list of current entries of Dictionary. An entry is a pair Keys#X, where Keys is a list and X the corresponding item.


End