Skip to content

Commit

Permalink
Avoid passing test and test-not
Browse files Browse the repository at this point in the history
  • Loading branch information
ruricolist committed Apr 27, 2023
1 parent 2bd4b3c commit cb33c15
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions types.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,16 @@ WITH-BOOLEAN."
(,utest ,test)
(,utest-not ,test-not))
(macrolet ((,test-fn (item list)
(list 'member
(list 'multiple-value-call
'(function member)
item list
:key ',ukey
:test ',utest
:test-not ',utest-not)))
(list 'if ',utest
'(values :test ',utest)
'(values))
(list 'if ',utest-not
'(values :test-not ',utest-not)
'(values)))))
,@body)))
`(let ((,test (canonicalize-test ,test ,test-not)))
(with-item-key-function (,key)
Expand Down

0 comments on commit cb33c15

Please sign in to comment.