[squeak-dev] The Inbox: Collections-mt.961.mcz
Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Oct 27 12:51:32 UTC 2021
Hi Marcel, could you maybe share some practical examples for #allIn:? I know that many people dislike #in:, too, as it can be used as just another dubious dispatch ...
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Mittwoch, 27. Oktober 2021 13:27:06
An: squeak-dev at lists.squeakfoundation.org
Betreff: [squeak-dev] The Inbox: Collections-mt.961.mcz
A new version of Collections was added to project The Inbox:
==================== Summary ====================
Time: 27 October 2021, 1:27:04.102238 pm
Propose addition of #allIn:. See comment. Please review and discuss.
=============== Diff against Collections-eem.960 ===============
Item was added:
+ ----- Method: Array>>allIn: (in category 'accessing') -----
+ allIn: aBlock
+ "Use the receivers contents as arguments for aBlock. Truncate not needed arguments, fill in missing ones with nil. Similar to #groupsDo: for single block invocation. Use it to avoid nested calls of #in:.
+ Note that this is implemented here in Array to allow its use only in literal arrays."
+ ^ aBlock valueWithEnoughArguments: self!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev