You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to do that by hand some times, and ended up not using classify because it would be worst to write and have to loop throw each key and reduce each value (on reduce case)... making the classify do that, you can reduce/produce iterating only once...
Activity
AlexDaniel commentedon Apr 5, 2019
And which problem are we trying to solve here exactly?
FCO commentedon Apr 5, 2019
I had to do that by hand some times, and ended up not using classify because it would be worst to write and have to loop throw each key and reduce each value (on reduce case)... making the classify do that, you can reduce/produce iterating only once...
Altai-man commentedon Apr 5, 2019
Why not just:
for the first one? Because it adds some symmetry with
produce?FCO commentedon Apr 5, 2019
It iterates twice each element...
and what about multi level classify?
AlexDaniel commentedon Apr 5, 2019
Do we have some examples of this functionality being used/implemented in real code? Maybe in the ecosystem?
jnthn commentedon Apr 5, 2019
Does this proposal apply to
categorizealso?jnthn commentedon Apr 5, 2019
How would this interact with the current semantics of things like
[+] ()and[+] 1, which use multi-dispatch on the target operator?Further, how is it better than
(flat $initial-value, @values).reduce(&reducer)?AlexDaniel commentedon Apr 5, 2019
IRC discussion: https://colabti.org/irclogger/irclogger_log/perl6-dev?date=2019-04-05#l181
lizmat commentedon Jan 13, 2025
Updated IRC discussion link: https://irclogs.raku.org/perl6-dev/2019-04-05.html#23:03-0003
lizmat commentedon Feb 22, 2026
@FCO is this still something that would need to be pursued this way?
If not, then suggest closing this issue.
FCO commentedon Feb 22, 2026
I think that is/would be useful. Maybe I should create a module for that to help on the discussion…
lizmat commentedon Feb 22, 2026
Going to close this issue in the meantime, ok?