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 >

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

Re: Can someone explains the difference between print-method and print-dup once and for all?

2018-08-10 Thread David Bürgin
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

Re: [ANN]: clambda 0.1.4 - reducible Java Streams

2018-08-10 Thread Dimitrios Jim Piliouras
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...