Bug in clojure.core/take lazy seq?

2016-10-22 Thread Zalan Barczal
Hi all: I think I encountered a problem in the clojure.core/take produces lazy sequences, and I wanted to run it by some folks to confirm it was indeed a bug. In a nutshell, clojure.core/take produces lazy sequences in a way such that (take (count t) t) will always retain the head of its bas

Re: Bug in clojure.core/take lazy seq?

2016-10-25 Thread Zalan Barczal
Indeed you're right, the drop lazy-seq prevents the lookahead. Thanks Meikel for the thoughtful response! On Tuesday, October 25, 2016 at 2:36:26 AM UTC-4, Meikel Brandmeyer (kotarak) wrote: > > In fact, (doall (take (count t) t)) actually realises t completely. But > not because of the doall o