[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: case using other equality-testing predicates
- To: Moon@SCRC-STONY-BROOK.ARPA
- Subject: Re: case using other equality-testing predicates
- From: Bobrow.pa@Xerox.COM (Danny Bobrow)
- Date: Wed, 21 May 1986 14:51:00 -0000
- Cc: fateman%dim@UCBVAX.Berkeley.EDU, common-lisp@SU-AI.ARPA
- In-reply-to: David A. Moon <Moon@SCRC-STONY-BROOK.ARPA>'s message of Tue, 20 May 86 15:35 EDT
- Sender: Bobrow.pa@Xerox.COM
>> ...to be able to specify the test function in CASE.
>> (selector item equalp ("foo" ...) ...)
>>
>> (case item :test #'equalp ("foo" ...) ...)
>>
>> (cond ((equalp item "foo") ...) ...)
Of the three, I prefer the
(case item :test #'equalp ("foo" ...) ...)
But I would rather a separate function
(case-with-test item equalp ...)
----- dgb: