16. GEEKS & BEERS
Mattias Johan
Functional Java
Lambdaj
Google Guava
17. USE CASES
Given a list of beers and their prices:
• Find the cheapest beer
• Find the most expensive beer
• What’s the name of the most expensive beer
• Get all the beer names
• What’s the total price
23. PROS & CONS
Java collections
Closures!
Plays nice with all
other functional
frameworks
Metaprogramming!
Non-lazy evaluation
Streams not
included in core
filter/map/reduce
25. STREAMS (1)
Lazy generators. Extension module created by @tim_yates
http://timyates.github.com/groovy-stream/
26. STREAMS (2)
Groovy is Java friendly. Use any Java library such as
functional-java
27. FJ MODULE EXTENSION
https://github.com/mperry/functionalgroovy
Update: Mark has posted some notes at
http://mperry.github.io/2013/07/28/groovy-null-handling.html