Skip to content

Instantly share code, notes, and snippets.

@cataska
Created September 22, 2018 13:59
Show Gist options
  • Save cataska/5b03e67418fa40f303d7db73b7a4e350 to your computer and use it in GitHub Desktop.
Save cataska/5b03e67418fa40f303d7db73b7a4e350 to your computer and use it in GitHub Desktop.
(def numbers (iterate inc 1))
;; => #'numbers
(defn square [x] (* x x))
;; => #'square
(def squared (map square numbers))
;; => #'squared
(take 5 squared)
;; => (1 4 9 16 25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment