4 ms·
'(foo bar baz) is sugar for (quote (foo bar baz)) list function unlike quote will evaluate it's arguments, i.e. user=> (quote (a b c)) (a b c)
by nivertech 14y ago
'(foo bar baz)
is sugar for
(quote (foo bar baz))
list function unlike quote will evaluate it's arguments, i.e.
user=> (quote (a b c))
(a b c)
user=> '(a b c)
(a b c)
user=> (list a b c)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: a in this context, compiling:(NO_SOURCE_PATH:1)
user=> (list 'a 'b 'c)
(a b c)