<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 11 April 2016 at 10:59, Tobias Pape <span dir="ltr">&lt;<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>&gt;</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 &lt;<a href="mailto:Marcel.Taeumel@hpi.de">Marcel.Taeumel@hpi.de</a>&gt; wrote:<br>
<br>
&gt; Hi, there!<br>
&gt;<br>
&gt; Please try the attached change set:  stream-chains.cs<br>
&gt; &lt;<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>&gt;<br>
&gt;<br>
&gt; It adds the possibility to attach transformations to streams using<br>
&gt; generators.<br>
&gt;<br>
&gt; Example:<br>
&gt;<br>
&gt; foo := (#(1 2 3 4 5 6) readStream<br>
&gt;   select: [:ea | ea even])<br>
&gt;   collect: [:ea | 2 * ea].<br>
&gt; foo upToNil. &quot;#(4 8 12)&quot;<br>
<br>
</span>upToNil -&gt; 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">&gt;<br>
&gt; It is tested. :-)<br>
&gt;<br>
&gt; Thanks Patrick for the idea.<br>
&gt;<br>
&gt; Best,<br>
&gt; Marcel<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>