mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
(scm_srfi1_assoc): Correction to comparison procedure
argument order, SRFI-1 specifies given key is first.
This commit is contained in:
parent
88bfcc55fa
commit
7b6af39a92
1 changed files with 1 additions and 1 deletions
|
@ -1557,7 +1557,7 @@ SCM_DEFINE (scm_srfi1_assoc, "assoc", 2, 1, 0,
|
|||
SCM tmp = SCM_CAR (ls);
|
||||
SCM_ASSERT_TYPE (scm_is_pair (tmp), alist, SCM_ARG2, FUNC_NAME,
|
||||
"association list");
|
||||
if (scm_is_true (equal_p (pred, SCM_CAR (tmp), key)))
|
||||
if (scm_is_true (equal_p (pred, key, SCM_CAR (tmp))))
|
||||
return tmp;
|
||||
}
|
||||
SCM_ASSERT_TYPE (SCM_NULL_OR_NIL_P (ls), alist, SCM_ARG2, FUNC_NAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue