From: Lars Rune Nøstdal Subject: Re: 'case' special op for strings? Date: Message-ID: <1227123111.15343.288.camel@blackbox.nostdal.org>
On Wed, 2008-11-19 at 08:55 -0800, Carlo wrote: > Is there any way to use the 'case' special op with other comparisons > that 'eq', e.g. 'string='? > > Thanks for your help! > > Carlo http://common-lisp.net/project/alexandria/ SW> (let ((obj "b")) (alexandria:switch (obj :test #'string=) ("a" "a") ("b" "b") ("c" "c"))) "b"