ClojureScript | JavaScript | |
---|---|---|
Symbols | atom,foo-bar,*foo*... |
variable names |
Literals | 42, "foo", nil, true, \c |
Same |
Keywords | :foo, :bar |
|
List | '(:a,:b,:c) |
|
Vector | [:a "b" 3] |
[a, "b", 3] Array |
Maps (Hashes) | { :a 1, func 2, 'a 3} |
{ "a" : 1, "b" : 2 } - Hash? |
Sets | #{ :a func b } |