[ library(m_tree234) | Reference Manual | Alphabetic Index ]
insert(+Tree0, ++Key, ?Value, -Tree)
Insert a key/value pair into a tree, failing if the key already exists.
- A 2-3-4 tree
- A key to insert
- The value corresponding to Key
- The tree after insertion
This predicate inserts the key Key with corresponding value Value
into the tree Tree0, resulting in the tree Tree. If the key Key is
already in the tree, then the predicate fails.
This predicate should only be called with trees created by other
predicates from the tree234 module.
Fails if Key already appears in Tree0.
update / 4, set / 4