[ library(m_map) | Third Party Libraries | Reference Manual | Alphabetic Index ]
remove(+Map0, ++Key, ?Value, -Map)
Remove a key/value pair from a map, failing if the key is not present.
- A map
- The key to remove
- The value corresponding to Key
- The map after removal
If the key Key appears in the map Map0, then remove it and attempt
to unify its corresponding value with Value. Map is Map0 with the
This predicate should only be called with maps created by other
predicates from the map module.
Fails is Key does not appear in Map0 or if Value does not unify with the corresponding value.
delete / 3, det_remove / 4, remove_smallest / 4