594 |
list elements, one which contains the elements satisfying a condition, |
list elements, one which contains the elements satisfying a condition, |
595 |
and the other for the elements which don't. |
and the other for the elements which don't. |
596 |
|
|
597 |
@deffn {Scheme Procedure} filter pred lst |
The @code{filter} and @code{filter!} functions are implemented in the |
598 |
@deffnx {Scheme Procedure} filter! pred lst |
Guile core, @xref{List Modification}. |
|
Return a list containing all elements from @var{lst} which satisfy the |
|
|
predicate @var{pred}. The elements in the result list have the same |
|
|
order as in @var{lst}. The order in which @var{pred} is applied to |
|
|
the list elements is not specified. |
|
|
|
|
|
@code{filter!} is allowed, but not required to modify the structure of |
|
|
@end deffn |
|
599 |
|
|
600 |
@deffn {Scheme Procedure} partition pred lst |
@deffn {Scheme Procedure} partition pred lst |
601 |
@deffnx {Scheme Procedure} partition! pred lst |
@deffnx {Scheme Procedure} partition! pred lst |