Tag: anonymous function

Tutorial: Anonymous Functions and Closures

This week’s tutorial discusses the basics behind anonymous functions and closures in Lua. These methods provide a powerful way to keep track of variable instances on a per-function basis and, in the context of Corona SDK, pass parameters to functions in which you don’t control the passed-in content. Read further to discover how.