Mixing Java Functions and Groovy Closures

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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s