1
Fork 0
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:
Marius Vollmer 2001-06-26 23:51:54 +00:00
parent e673b80495
commit abf94ef33f

View file

@ -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)))))