groupBy in D?
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Mar 14 08:12:50 PDT 2017
Dne 14.3.2017 v 16:02 Russel Winder via Digitalmars-d-learn napsal(a):
> I am having a hard time Google-ing today. Pytho, Groovy, Kotlin, etc.
> have a "groupBy" function that takes a sequence and a key and creates a
> dictionary/associative array with keys the result of the key function
> on the sequence and key values all the items that match the key.
>
> D doesn't seem to have such a function directly. Unless I missed it…
Can you post some example? Maybe in python, kotlin whatever so I can
better understand what you want
More information about the Digitalmars-d-learn
mailing list