Thank you for the exhaustive explanation, Michal.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first po
Thank you for your response, Marko.
I want to clarify one more thing:
(let [[t d] (split-with #(< % 12) (range 1e8))]
[(count d) (count t)])
does this mean that while (count d) is realizing (range 1e8) seq, it
becomes (also) realized within t, therefore
it doubles (range 1e8) in memory cau
I'm reading Clojure Programming book by O'Reilly..
I came over an example of head retention. First example retains reference
to d (I presume), so it doesnt get garbage collected:
(let [[t d] (split-with #(< % 12) (range 1e8))]
[(count d) (count t)]);= #
While second example doesnt retain
As Marko has said, this was answered on stackoverflow.
But I appreciate your answers, and the discussion is a joy to read.
Cheers!!
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note
I'm going through clojure & emacs tutorial from clojure-doc.org, and
when compiling
the test as suggested, i get following output in emacs nrepl:
clojure.lang.Compiler$CompilerException:
java.lang.RuntimeException: Unable to resolve symbol: deftest in this
context, compiling:(/home/jakov/