Duck util-list.
This commit is contained in:
parent
1a2e9ee726
commit
2f1589579e
5 changed files with 34 additions and 21 deletions
|
@ -256,3 +256,21 @@ When the ```line``` contains whitespace character(s), it returns a
|
|||
pair consisting of symbol created by interning the string of
|
||||
non-whitespace characters before the first whitespace character and
|
||||
the string with the rest of the line.
|
||||
|
||||
## util-list [module]
|
||||
|
||||
(import util-list)
|
||||
|
||||
This module implements basic list functionality which is common in
|
||||
most scheme implementations.
|
||||
|
||||
### filter [procedure]
|
||||
|
||||
(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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue