Groovy - Strategy Pattern using Closures
Suppose we have a list of numbers.
def numbers = [1, 2, 3, 4, 5, 6, -1]
We are asked to do the following
1. Find out all the even numbers in the list
2. Find out all the numbers divisible by 3
3. Find out all the negative numbers in