Equivalent of Maps.uniqueIndex?

Michael Nascimento misterm at gmail.com
Fri Jan 4 07:37:33 PST 2013


There is no mapTo() in Tabulators in build 69. There is a mappedTo,
but it takes a BinaryOperator. Which one am I supposed to use?

Regards,
Michael

On Fri, Jan 4, 2013 at 1:28 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
> 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