Additional Collectors

Tim Peierls tim at peierls.net
Wed Apr 3 11:34:39 PDT 2013


On Wed, Apr 3, 2013 at 2:02 PM, Brian Goetz <brian.goetz at oracle.com> wrote:

> I think if we do
>   Map<T,U> toMap(T->U)
> and
>   Map<K,U> toMap(T->K, T->U)
>
> we can call them both toMap and people will get it.


I think that's fine, but if you do that it would be really nice to show how
to get the "toIndexMap" behavior in the docs for the two-arg toMap.

--tim


More information about the lambda-libs-spec-observers mailing list