Clojure 集合
数据结构
?
List、Vect、Map、Set
?
List
?
(list 1 2 3) = (quote (1 2 3)) = '(1 2 3)
?
? 如果是symbol而不是数字或者字符串等,必须用'
? '(a b c d)
? (quote (a b c d))
? (list a b c);?CompilerException java.lang.RuntimeException: Unable to resolve symbol: a in this context, compiling:(NO_SOURCE_PATH:14)?
?
?
?
?