Re: Lazy sequence in a set.

2018-08-10 Thread Alex Miller
I think the difference you're seeing is that sets have to evaluate their members early to check membership (and avoid duplicates). On Friday, August 10, 2018 at 10:10:04 AM UTC-5, Mykola Rozhok wrote: > > Hi guys, > > Is this expected behaviour - the following statements in the middle of a > pie

Lazy sequence in a set.

2018-08-10 Thread Mykola Rozhok
Hi guys, Is this expected behaviour - the following statements in the middle of a piece of code: (list (range)) - works fine [(range)] - works fine {:a (range)} - works fine #{(range)} - blocks forever Basically, I needed to pass a few lazy sequences in a set, and it blocked. Many thanks for