<div dir="ltr">Sorry. I meant to suggest collect:from: as an alternative spelling of withAll:collect:. I find collect:from: more intention-revealing than withAll:collect:.<br><br><div class="gmail_quote">On Mon, Sep 22, 2008 at 8:40 PM, Richard A. O'Keefe <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz">ok@cs.otago.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><br>
On 23 Sep 2008, at 4:40 am, Eliot Miranda wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="Ih2E3d">
what about<br>
Collection class collect: aBlock from: aCollection<br>
e.g.<br>
Array collect: [:each | each codePoint] from: 'abc'<br></div>
?<br>
<br>
</blockquote>
Because there isn't any #collect:from: in the Smalltalks<br>
I use. I've already mentioned the operation I added,<br>
which is named consistently with the ANSI methods, namely<br>
<class> withAll: collection collect: aBlock<br>
This also goes with<br>
<collection> addAll: collection collect: aBlock<br>
<br>
#withAll:collect: is nice, and I'd like to see it in the<br>
new standard, but it's long winded and it's limiting.<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
_______________________________________________<br>
ANSI-Smalltalk mailing list<br>
<a href="mailto:ANSI-Smalltalk@lists.openskills.org" target="_blank">ANSI-Smalltalk@lists.openskills.org</a><br>
<a href="http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk" target="_blank">http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk</a><br>
</div></div></blockquote></div><br></div>