Functions.identity() equivalent (original) (raw)

Michael Nascimento misterm at gmail.com
Thu Apr 18 11:52:32 PDT 2013


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



More information about the lambda-dev mailing list