Document utils.

This commit is contained in:
Dominik Pantůček 2023-03-20 20:34:55 +01:00
parent 8693d325d3
commit 606fd2dc1e

View file

@ -93,3 +93,16 @@ Support Modules
### Testing
### Utils
To ensure there are no external dependencies (including chicken eggs),
this module re-implements any basic procedures which are required for
any algorithms used.
#### Filter
(filter pred? lst)
* ```pred?``` - procedure accepting any value and returning #t or #f
* ```lst``` - list to be filtered
Returns a list containing only elements matching given ```pred?``` predicate.