Map.asFunction (original) (raw)
Remi Forax forax at univ-mlv.fr
Fri Jan 4 09:17:04 PST 2013
- Previous message: Map.asFunction
- Next message: Map.asFunction
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Map.asFunction
- Next message: Map.asFunction
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list