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
>
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
On 10/08/18 06:33, Didier wrote:
> Thanks David. So if I need to extend edn to serialize custom types, I should
> extend print-method? And have it switch on print-readably? Where when true,
> prints a reabale edn literal #x/y ... for example, otherwise it prints as
> standard?
>
> Would that
Hi Andrew,
Well, for the native java Stream case, your 'early-spliterator' has to be
able to split the Spliterator it's wrapping instead of always returning
nil. For the Stream around a seq case, you need to ditch 'iterator-seq',
and implement something splitable. See my SeqSpliterator deftype...