Skip to content

Lambdas & Closures

brachy84 edited this page Jul 7, 2022 · 1 revision

You may have heard of lambdas (f.e. (param1, param2) -> param1 + param2). In Groovy they are called Closures and have a slightly diffirent syntax. The example would look like this: { param1, param2 -> param1 + param2 }.

Clone this wiki locally