Adding what could be the Groovy version of fmap