<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 11 April 2016 at 10:59, Tobias Pape <span dir="ltr"><<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
On 11.04.2016, at 17:57, marcel.taeumel <<a href="mailto:Marcel.Taeumel@hpi.de">Marcel.Taeumel@hpi.de</a>> wrote:<br>
<br>
> Hi, there!<br>
><br>
> Please try the attached change set: stream-chains.cs<br>
> <<a href="http://forum.world.st/file/n4889389/stream-chains.cs" rel="noreferrer" target="_blank">http://forum.world.st/file/n4889389/stream-chains.cs</a>><br>
><br>
> It adds the possibility to attach transformations to streams using<br>
> generators.<br>
><br>
> Example:<br>
><br>
> foo := (#(1 2 3 4 5 6) readStream<br>
> select: [:ea | ea even])<br>
> collect: [:ea | 2 * ea].<br>
> foo upToNil. "#(4 8 12)"<br>
<br>
</span>upToNil -> upToEnd? :D<br>
<br>
Btw: I really like this api, can we do such things with Xtreams, too?<br></blockquote><div><br></div><div>Yes. I wrote up an intro a few years back, after Michael presented Xtreams at UKSTUG: <a href="http://www.lshift.net/blog/2010/11/29/xtreams-framework-for-squeak/">http://www.lshift.net/blog/2010/11/29/xtreams-framework-for-squeak/</a></div><div><br></div><div>frank</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Best<br>
<span class=""><font color="#888888"> -Tobias<br>
</font></span><div class=""><div class="h5">><br>
> It is tested. :-)<br>
><br>
> Thanks Patrick for the idea.<br>
><br>
> Best,<br>
> Marcel<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>