functional programming library in groovy