Skip to content

Instantly share code, notes, and snippets.

@cataska
Last active October 7, 2018 10:29
Show Gist options
  • Save cataska/fd4c3a78e94f2fed3a62484e197bc120 to your computer and use it in GitHub Desktop.
Save cataska/fd4c3a78e94f2fed3a62484e197bc120 to your computer and use it in GitHub Desktop.
(inc 1)
;; => 2
(+ 1 2 3 4)
;; => 10
((fn [x] (* x x)) 5)
;; ==> 25
(def square (fn [x] (* x x)))
(square 12)
;; => 144
(defn square
"Return the square of a given number."
[x]
(* x x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment