Groovy - Converting Methods to Closures
One of the important characteristics of Groovy closure is that they are first class - closures can be passed as arguments to other closures and functions. More details on higher order functions in this post.Suppose you have a piece of functionality available as a method and you want to…