February 2014
Intermediate to advanced
160 pages
4h 59m
English
| | final Function<String, Predicate<String>> startsWithLetter = |
| | letter -> name -> name.startsWith(letter); |
We can build lambda expressions that themselves return lambda expressions. The implementation of the Function interface here takes in a String letter and returns a lambda expression that conforms to the Predicate interface.
Read now
Unlock full access