> Le 24 août 2019 à 09:29, Steffen Märcker a écrit :
>
> Hi Julien,
Hello Steffen,
>
> nice work! Could you please tell how your approach is related to
> transducers from the user perspective and technically?
> (https://github.com/Pharophile/Transducers)
It is quite similar, except that I
Distinguishing between "pull-based" and "push-based" streams in
Smalltalk makes no sense, because
do: aBlock
[self atEnd] whileFalse: [aBlock value: self next].
is in the same protocol in the ANSI standard
as #atEnd and #next, and in most Smalltalk systems it is in
Stream. There should
Hi Julien,
nice work! Could you please tell how your approach is related to
transducers from the user perspective and technically?
(https://github.com/Pharophile/Transducers)
Your example suggests that the API is quite similar to the data flow API
of transducers. Let me show your example using
On 23. 8. 2019 19:23, Herby Vojčík wrote:> On 23. 8. 2019 16:14, Julien
wrote:
>> Hello,
>>
>> I wanted to have an iterator framework for Pharo for a long time.
>>
>> So I started building it step by step and today I think that, while it
>> still requires more documentation, it is ready to be
On 23. 8. 2019 16:14, Julien wrote:
Hello,
I wanted to have an iterator framework for Pharo for a long time.
So I started building it step by step and today I think that, while it
still requires more documentation, it is ready to be announced and used
by others.
I present you Iterators :
Hi
This is supercool!
I had been wondering myself of the lack of such a library. The Xtreams seem
to be a bit related, but they focus on IO more that map/reduce programming.
I am intrigued by your choice of argument-less methods (reduceIt,
collectIt,…). I would most likely have opted for a
I made a mistake in the following snippet:
> Le 23 août 2019 à 16:14, Julien a écrit :
>
> iterator := #(1 2 3) iterator.
> collectionToFill := OrderedCollection new.
> iterator
> | [ :x | x * 2 ] collectIt
> | [ :x :y | x + y ] reduceIt
> > collectionToFill.
>
Hello,
I wanted to have an iterator framework for Pharo for a long time.
So I started building it step by step and today I think that, while it still
requires more documentation, it is ready to be announced and used by others.
I present you Iterators :