[Pharo-users] Why do #select:thenXxx methods not return their result

Peter Uhnák i.uhnak at gmail.com
Fri Jun 8 05:00:33 EDT 2018


>
> It only uses one temp collection, where a #select: followed by a separate
> #collect: would need two.
>


Yeah, be careful with that, because it changes the semantics of the
operation. (magine what happens when `thenDo:` operates on the original
collection and there's no intermediate collection. (I ran into this issue
many times.)

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20180608/65030615/attachment.html>


More information about the Pharo-users mailing list