New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

groupBy doesn't distinguish between type variables in docs #11384

sharno opened this Issue Jan 29, 2019 · 1 comment


None yet
2 participants
Copy link

sharno commented Jan 29, 2019

I was looking at the groupBy function in Map[K](f:A=%3EK):scala.collection.immutable.Map[K,Repr]

It seems that the type signature should distinguish between the K type variable from the map that's being worked on and the K type variable that's the result of the the function supplied to groupBy

So I'd expect to see:

def groupBy[K1](f: ((K, V))  K1): Map[K1, Map[K, V]]

instead of:

def groupBy[K](f: ((K, V))  K): Map[K, Map[K, V]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment