Mixing Java Functions and Groovy Closures
With Java 8 offering functional features, the question comes to mind, "How and why Java functions can be used in Groovy?"
In many ways, closures and functions more or less offer the same functionality. Groovy has support for functions, but not for lambdas. The syntax conflicts because the arrow symbol is already used in Groovy. In what way can the two, Java functions and groovy closures, be used together?
via DZone.com Feed https://dzone.com
May 15, 2017 at 08:27AM