Equivalent of Maps.uniqueIndex?

Michael Nascimento misterm at gmail.com
Fri Jan 4 07:22:08 PST 2013


Guys,

What is the equivalent in Lambda to Guava's Maps.uniqueIndex:

http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/google/common/collect/Maps.html#uniqueIndex(java.lang.Iterable,
com.google.common.base.Function)

I was trying the tabulate method, but couldn't find a method in
Tabulators with a single function that assumes the stream has unique
keys.

Regards,
Michael


More information about the lambda-dev mailing list