2016-09-29 16:51 GMT+02:00 stepharo <stepharo@free.fr>:

Hi denis

Yes. XStream supports it:

(1 to: 1000) reading transforming: [:in :out | | each | each := in get. out ��put: each -1; put: each; put: each + 1]��

But you probably wants different:

(1 to: 1000) reading collecting: [:each | {each -1. each. each + 1} ]

My point is can we control the next action so that we can take any collection
and turn it in a stream.

Transforming is main approach to do this. And it is quite simple