AخA
cljs.user=> 
Current mode: indent-mode | 0 form(s) in the evaluation queue
Useful Functions
math
comparison
predicates
higher-order functions
functions as data
Datatypes
maps
{:key1 val1, :key2 val2}
vectors
[1 2 3]
[:a :b :c]
sets
#{1 :c 3 2 :b :a}
scalars
a-symbol
:a-keyword
"a-string"
arrays
(array 1 2 3)
Functions
calling
(<FUNCTION> <ARGS*>)
defining named functions
(defn <NAME> [<ARGS*>] |CONSTRAINTS| <ACTIONS*>)
anonymous function
(fn |NAME| [<ARGS*>] |CONSTRAINTS| <ACTIONS*>)
anonymous inline funcion
#(<ACTION> |% %2 %3 OR %&|)
Sequences
creation
inspection
manipulation
Useful Macros
conditionals
nesting, chaining, and interop
defining things
JavaScript Interop
method call
(.the-method target-object args...)
property access
(.-property target-object)
property setting
(set! (.-title js/document) "Hi!")
direct javascript
(js/alert "Hello world!")
external library use
(.text (js/jQuery "#title") "ClojureScript Rocks!")