Groovy Functional Programming - Pure Functions
Functional programming and pure functions go hand in hand. When we program in functional style, it is recommended to write pure functions as much as possible. So what are pure functions?
A pure function is one which
* Does not produce any side effects and
* Does not depend on any side