Implement new ldict-set procedure.

This commit is contained in:
Dominik Pantůček 2023-04-09 19:45:40 +02:00
parent a80b216bbc
commit ac1c5d28c6
2 changed files with 23 additions and 11 deletions

View file

@ -81,6 +81,15 @@ of missing key.
Returns a new dictionary with the record under given key removed. If
the dictionary does not contain the key ```k```, an error is raised.
(ldict-set ld k v)
* ```ld``` - a ldict instance
* ```k``` - a compatible key
* ```v``` - a value to insert
Sets existing key ```k``` to the new value ```v``` or inserts it if it
is not already present in the dictionary ```ld```.
### IO
(import util-io)