Talk:Lua Functional Programming/Functions
Add topic"So-called lambda expressions or anonymous inline functions can also be created in Lua. They are similar to the "ordinary" functions described above in almost every way." This is inaccurate, since all functions in Lua are anonymous. They are just assigned into th function "name" variable in the syntax used earlier on this page. I think this page needs heavy editing, just not up to it now, myself. Otus09:54, 4 June 2007 (UTC)
---
Another thing to note is for things like the CDR function. In Lisp, that returns the tail of the original list, not a copy of the tail. If you hold a reference to the original list and the tail, and then modify something at the end of the list (changing the '3' to a '4', for example), then both lists will contain the modified value. - James
---
Also related to the CDR function, it is missing a return statement. - Anton.