Re: [Pharo-users] [ANN] Iterators

2019-08-25 Thread Julien
> 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

Re: [Pharo-users] [ANN] Iterators

2019-08-24 Thread Richard O'Keefe
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

Re: [Pharo-users] [ANN] Iterators

2019-08-24 Thread Steffen Märcker
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

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Herby Vojčík
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

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Herby Vojčík
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 :

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Kasper Østerbye
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

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Julien
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. >

[Pharo-users] [ANN] Iterators

2019-08-23 Thread Julien
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 :