Skip to content

Instantly share code, notes, and snippets.

@a-perc
Created September 20, 2012 12:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save a-perc/3755537 to your computer and use it in GitHub Desktop.
StackOverflowError in clojure
user=> (def col (for [x (range 1 100) y (range 1 100)] (list x y)))
#'user/col
user=> (reduce #(map + %1 %2) col col)
StackOverflowError clojure.core/seq (core.clj:133)
user=> (reduce #(map + %1 %2) '(0 0) col)
StackOverflowError clojure.core/seq (core.clj:133)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment