Author(s): The CLIP Group.
Version: 1.9#240 (2003/12/22, 18:52:17 CET)
This module provides predicates for implementing dictionaries. Such dictionaries are currently implemented as ordered binary trees of key-value pairs.
dict
)dict
)
Usage: dictionary(D)
D
is a dictionary.
Usage: dictionary(D, K, V, L, R)
D
has key K
, value V
, left child L
, and right child R
.
Usage: dic_node(D, N)
N
is a sub-dictionary of D
.
D
is a dictionary.
(dict:dictionary/1
)
N
is a dictionary.
(dict:dictionary/1
)
Usage: dic_lookup(D, K, V)
D
contains value V
at key K
. If it was not already in D
it is added.
D
is a dictionary.
(dict:dictionary/1
)
Usage: dic_lookup(D, K, V, O)
dic_lookup(D,K,V)
. O
indicates if it was already in D
(old
) or not (new
).
D
is a dictionary.
(dict:dictionary/1
)
Usage: dic_get(D, K, V)
D
contains value V
at key K
. Fails if it is not already in D
.
D
is a dictionary.
(dict:dictionary/1
)
Usage: dic_replace(D, K, V, D1)
D
and D1
are identical except for the element at key K
, which in D1
contains value V
, whatever has (or whether it is) in D
.
D
is a dictionary.
(dict:dictionary/1
)
D1
is a dictionary.
(dict:dictionary/1
)
Go to the first, previous, next, last section, table of contents.