mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-27 23:40:24 +02:00
(member-if): Put in docstring for member-if, it
was a cut-n-paste error previously.
This commit is contained in:
parent
e673b80495
commit
abf94ef33f
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ If found, return that element, otherwise return #f."
|
|||
(else (find-if pred (cdr l)))))
|
||||
|
||||
(define-public (member-if pred l)
|
||||
"Return #f iff (PRED element) is not true for any element in L."
|
||||
"Return the first sublist of L for whose car PRED is true."
|
||||
(cond ((null? l) #f)
|
||||
((pred (car l)) l)
|
||||
(else (member-if pred (cdr l)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue