2016-09-29 12:39 GMT+02:00 Denis Kudriashov <dionisiydk@gmail.com>:
and collect: could be rewritten to use a generator.

Now does anybody play with this already?

Does xtream provide a way to do something in the same vein?

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} ]��