recursive lambda as a local variable
Brian Goetz
brian.goetz at oracle.com
Thu Sep 12 10:44:15 PDT 2013
> - using BMRs does not have this effect, if used with a typical unary
> functional expression:
Some examples of bound method references:
list.stream()
.filter(goodElements::contains)
or
list.stream()
.map(...)
.forEach(result::add) // though I still usually prefer collect()
or SAM-SAM conversion:
Function<String, Boolean> f = ...
Predicate<String> p = f::apply;
More information about the lambda-dev
mailing list