February 2014
Intermediate to advanced
160 pages
4h 59m
English
| | symbols.map(StockUtil::getPrice) |
| | .filter(StockUtil.isPriceLessThan(500)) |
| | .reduce(StockUtil::pickHigh) |
| | .get(); |
We can compose functions to transform objects through a series of operations like in this example. In the functional style of programming, function composition or chaining is a very powerful construct to implement associative operations.