projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0619e91
)
Add :TEST keyword arg to ASSOC
author
Strigoides
<Strigoides@gmail.com>
Fri, 26 Apr 2013 19:43:05 +0000
(07:43 +1200)
committer
Strigoides
<Strigoides@gmail.com>
Fri, 26 Apr 2013 19:43:05 +0000
(07:43 +1200)
src/boot.lisp
patch
|
blob
|
history
diff --git
a/src/boot.lisp
b/src/boot.lisp
index
de32e75
..
45a8809
100644
(file)
--- a/
src/boot.lisp
+++ b/
src/boot.lisp
@@
-552,9
+552,9
@@
(incf pos))
pos))
-(defun assoc (x alist)
+(defun assoc (x alist &key (test #'eql))
(while alist
- (if (eql x (caar alist))
+ (if (funcall test x (caar alist))
(return)
(setq alist (cdr alist))))
(car alist))