Professor Frisby Introduces Composable Functional JavaScript
egghead.io2 pointsby dmitriz1 comments
cljs.user=> (defmacro swap [x] (list (second x) (first x) (last x)))
#'cljs.user/swap
cljs.user=> (swap (1 + 2))
Execution error (Error) at (<cljs repl>:1).
1.call is not a function swap = (x,y,...rest) => [y,x,...rest]