Re: Head retention example

2013-04-22 Thread tyaakow
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

Re: Head retention example

2013-04-14 Thread tyaakow
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

Head retention example

2013-04-13 Thread tyaakow
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)]);= #OutOfMemoryError

Re: Beginners question - emacs compiling tests

2013-03-20 Thread tyaakow
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

Beginners question - emacs compiling tests

2013-03-19 Thread tyaakow
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,