Map.asFunction
Remi Forax
forax at univ-mlv.fr
Fri Jan 4 09:17:04 PST 2013
On 01/04/2013 04:29 PM, Brian Goetz wrote:
> We didn't decide not to. (Similarly Set.asPredicate()) No objection
> (the body can be this::get). No objection.
>
> On 1/4/2013 10:17 AM, Doug Lea wrote:
>>
>> There is no Map interface method:
>>
>> default Function<K,V> asFunction() { return { k -> get(k) }; }
>>
>> Did we decide not to do this or just forget to do it?
>>
>> -Doug
Not sure it worth a method as it can be written map::get or set::contains.
RĂ©mi
More information about the lambda-libs-spec-experts
mailing list