Translation of the "Java 8 Lambdas Hacking" lab in Groovy