Functions.identity() equivalent (original) (raw)
Michael Nascimento misterm at gmail.com
Thu Apr 18 11:52:32 PDT 2013
- Previous message: RFR: 8001647: In-place methods on Collection/List
- Next message: Functions.identity() equivalent
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi guys,
One common scenario here is having a Map<Something, Long> and wanting to do something with the values. So I (think I) have to do:
totalBySomething.values().parallelStream().mapToLong(l -> l)...
because I cannot use Functions.identity() here. This shows up pretty often. Anything planned for that?
Regards, Michael
- Previous message: RFR: 8001647: In-place methods on Collection/List
- Next message: Functions.identity() equivalent
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]