Equivalent of Maps.uniqueIndex?

Brian Goetz brian.goetz at oracle.com
Fri Jan 4 07:28:17 PST 2013


tabulate(Tabulators.mapTo())

On 1/4/2013 10:22 AM, Michael Nascimento wrote:
> 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