On 2016-01-04 16:20, John Cowan wrote:
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.
Ha, so it is the case:
#;1> (case 'a
('a 1)
('b 2)
(else #f))
1
And just to be thorough:
#;1> (case 'a
(a 1)
(b 2)
(else #f))
Error: (map) during expansion of (case ...) - bad argument type -
not a list: a
-Dan
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users