Work on new ldict implementation.

This commit is contained in:
Dominik Pantůček 2023-04-09 19:25:02 +02:00
parent c34d4ca159
commit 6d3d7079cf
2 changed files with 44 additions and 7 deletions

View file

@ -31,6 +31,24 @@ representing its contents.
Splits given loaded CSV into two tables at the first empty row.
### Dictionary
(import util-dict)
This module implements a simple key/value dictionary using lists as
backend. All operations are O(n) with respect to time.
(make-ldict [equality?/pairs [pairs]])
* ```equality?/pairs``` - procedure or list of pairs
* ```pairs``` - list of pairs
Creates a new ldict with configurable equality procedure, optionally
populating it with initial data.
If only one argument is given, the procedure checks whether it is a
list of equality procedure and acts accordingly.
### IO
(import util-io)