A.4.4 Modifying association lists
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
The SWI-Prolog library
library(assoc): Association lists
Modifying association lists
put_assoc/4
del_assoc/4
del_min_assoc/4
del_max_assoc/4
Packages
Availability:
:- use_module(
library(assoc)
).
(can be autoloaded)
[semidet]
del_min_assoc
(
+Assoc0, ?Key, ?Val, -Assoc
)
True if
Key
-Value is in
Assoc0
and
Key
is the smallest key.
Assoc
is
Assoc0
with
Key
-Value removed. Warning: This will succeed with
no
bindings for
Key
or
Val
if
Assoc0
is empty.