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 
> 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 any info in advance.
>
>
> Kind Regards,
> Mykola
>

-- 
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 post.
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to