Tobias,
Would you mind posing your questions from the Inbox instead of trunk?
I think the question itself is indicative that this not generally
useful, but could potentially rob apps of this API for their own
purposes (e.g., charting software).
I admit I often find myself typing the expression:
(myCollection collect: [ : each | ... ]) asBag sortedCounts
but this doesn't help with that.
-1.
Regards,
Chris
On Sun, Oct 28, 2018 at 2:33 PM Tobias Pape <
[hidden email]> wrote:
>
>
> > On 28.10.2018, at 20:16,
[hidden email] wrote:
> >
> > Tobias Pape uploaded a new version of Collections to project The Trunk:
> >
http://source.squeak.org/trunk/Collections-topa.809.mcz> >
> > ==================== Summary ====================
> >
> > Name: Collections-topa.809
> > Author: topa
> > Time: 28 October 2018, 8:16:44.149252 pm
> > UUID: 65e8b64d-f325-47d8-8f83-ab4a9793ba9f
> > Ancestors: Collections-eem.808
> >
> > Add #histogramOf: convenience + test
> >
> > =============== Diff against Collections-eem.808 ===============
> >
> > Item was added:
> > + ----- Method: Collection>>histogramOf: (in category 'converting') -----
> > + histogramOf: aBlock
> > +
> > + ^ self collect: aBlock as: Bag!
> >
> >
>
> My only question here, would you prefer a (self collect: aBlock as: Bag) sortedCounts instead?
> It's even more histogrammy :D
>
> best regards
> -Tobias
>
>