code for the talk about functional programming constructs in groovy