Implement ldict-ref.

This commit is contained in:
Dominik Pantůček 2023-04-09 19:34:27 +02:00
parent a5ed5bca53
commit 1df2792838
2 changed files with 21 additions and 7 deletions

View file

@ -62,6 +62,17 @@ Returns ```#t``` if given dictionary contains no keys.
Returns ```#t``` if given ```ld``` contains given key ```k```.
(ldict-ref ld k [default])
* ```ld``` - a ldict instance
* ```k``` - a compatible key
* ```default``` - optional fallback value
Retrieves the value associated with given key in given dictionary. If
the dictionary does not contain it and no default is given, an
exception is raised. Otherwise the default value is returned in case
of missing key.
### IO
(import util-io)