mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
* srfi-modules.texi (SRFI-1 Filtering and Partitioning): Move filter
and filter! ... * scheme-compound.texi (List Modification): ... to here, now that they're implemented in the core.
This commit is contained in:
parent
385dbc8b9c
commit
60e25dc4cd
2 changed files with 12 additions and 9 deletions
|
@ -461,6 +461,16 @@ Like @code{delete!}, but only deletes the first occurrence of
|
|||
@code{equal?}. See also @code{delq1!} and @code{delv1!}.
|
||||
@end deffn
|
||||
|
||||
@deffn {Scheme Procedure} filter pred lst
|
||||
@deffnx {Scheme Procedure} filter! pred lst
|
||||
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
|
||||
|
||||
@node List Searching
|
||||
@subsection List Searching
|
||||
|
||||
|
|
|
@ -594,15 +594,8 @@ specific condition. Partitioning a list means to make two groups of
|
|||
list elements, one which contains the elements satisfying a condition,
|
||||
and the other for the elements which don't.
|
||||
|
||||
@deffn {Scheme Procedure} filter pred lst
|
||||
@deffnx {Scheme Procedure} filter! pred lst
|
||||
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
|
||||
The @code{filter} and @code{filter!} functions are implemented in the
|
||||
Guile core, @xref{List Modification}.
|
||||
|
||||
@deffn {Scheme Procedure} partition pred lst
|
||||
@deffnx {Scheme Procedure} partition! pred lst
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue