Reimplement and document ldict-filter.
This commit is contained in:
parent
bd7421b626
commit
90fa195dc5
2 changed files with 20 additions and 9 deletions
|
@ -112,6 +112,15 @@ if it accepts three arguments, the key, value and numeric index
|
|||
In all cases the value the procedure returns is taken as the new value
|
||||
for given key.
|
||||
|
||||
(ldict-filter pred? ld)
|
||||
|
||||
* ```pred?``` - predicate procedure
|
||||
* ```ld``` -a ldict instance
|
||||
|
||||
Returns a new dictionary containing only key/value pairs matching the
|
||||
given predicate. The procedure ```pred?``` must accept two arguments -
|
||||
the key and the value.
|
||||
|
||||
### IO
|
||||
|
||||
(import util-io)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue