chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] another egg


From: John Cowan
Subject: Re: [Chicken-users] another egg
Date: Mon, 4 Jan 2016 16:20:34 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

address@hidden scripsit:

>     #;2> (case 'a
>       (('a) 1)
>       (('b) 2)
>       (else #f))
>     #f

However, (case x ('a 1) ('b 2) (else #f)) will sort of work (one fewer
set of parens), because 'a is (quote a), a list of symbols.  So if x is
'quote or 'a, you get 1; if it's 'b, you get 2, otherwise you get #f.

-- 
John Cowan          http://www.ccil.org/~cowan        address@hidden
Dream projects long deferred usually bite the wax tadpole.
        --James Lileks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]