On Fri, Dec 19, 2008 at 9:37 AM, Michael Wood <esiot...@gmail.com> wrote:
>
> On Fri, Dec 19, 2008 at 4:35 PM, Michael Wood <esiot...@gmail.com> wrote:
>>
>> hmmm...  if I do this:
>>
>> user=> (partition 2 1 (iterate inc 1)) (.printStackTrace *e)
>>
>> it ends like this:
>>
>> [...]
>> 57) (587257 587258) (587258 587259) (587259 587260) (587260 587261)
>> (587261 587262) (587262 587263) (587263 587264) (587264 587265)
>> (587265 587266) (587266 587267) (587267 587268) (587268 587269)
>> (587269 587270) (587270 587271) (587271 587272) (587272 587273)
>> (587273 587274) user=> java.lang.OutOfMemoryError: Java heap space
> [...]
>
> Actually, I suppose that's because it's printing the whole thing out?

It's easy enough to test:

user=> (nth (partition 2 1 (iterate inc 1)) 10000000)
(10000001 10000002)

--Chouser

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to