Re: take goes too far

2008-10-25 Thread Rich Hickey
On Oct 24, 5:44 pm, Chouser <[EMAIL PROTECTED]> wrote: > I ran into a problem with "take" today (thanks to wwmorgan on IRC for > helping steer me away from blaming "filter"). > > My actual code had to do with computing a subset of primes, but let's > take a simpler example. > > (defn painful-seq

take goes too far

2008-10-24 Thread Chouser
I ran into a problem with "take" today (thanks to wwmorgan on IRC for helping steer me away from blaming "filter"). My actual code had to do with computing a subset of primes, but let's take a simpler example. (defn painful-seq [] (lazy-cat [0 1 2] (comment lots of hard work here)