mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
(scm_srfi1_member): Correction to pred call arg order, srfi
spec is (PRED X elem).
This commit is contained in:
parent
8e15d7f577
commit
2796304a40
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ SCM_DEFINE (scm_srfi1_member, "member", 2, 1, 0,
|
||||||
}
|
}
|
||||||
for (; !SCM_NULL_OR_NIL_P (lst); lst = SCM_CDR (lst))
|
for (; !SCM_NULL_OR_NIL_P (lst); lst = SCM_CDR (lst))
|
||||||
{
|
{
|
||||||
if (scm_is_true (equal_p (pred, SCM_CAR (lst), x)))
|
if (scm_is_true (equal_p (pred, x, SCM_CAR (lst))))
|
||||||
return lst;
|
return lst;
|
||||||
}
|
}
|
||||||
return SCM_BOOL_F;
|
return SCM_BOOL_F;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue