Groovy Curry and Partial Application – Complete Guide with 10 Examples
Every Jenkins pipeline has a logging closure that takes a level, a tag, and a message, and every single call passes the same first two arguments. Groovy curry exists for exactly that itch: pre-fill some parameters of a closure and get back a leaner one. This guide covers curry(), rcurry(), and ncurry() with 10 tested examples on Groovy 5.0.6. “Currying is the art of asking for less — turning a function that needs three ingredients into one that already has ... Read More
