Clojure riddle, why does this cause a stack overflow? (first (reduce concat (map vector (range 10000))))
-
-
indeed, except that even if seqs weren't chunked it would still try to realize the complete stack when retrieving a single element.
-
You are right. Not only did I miss the arg order, chunking seems like a complete red herring as (first (reduce #(concat %2 %1) (map vector (range 10000)))) works.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.