I asked a question about Currying and closures were mentioned. What is a closure? How does it relate to currying?
A simple example in Groovy for your reference:
def outer() { def x = 1 return { -> println(x)} // inner } def innerObj = outer() innerObj() // prints 1