Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can implement a lambda style of programming in lua. Im made a game for the spring engine, where i implemented a simple function to use anonymous functions. Granted it doesent have the lazy computation of a pure functional implementation.

T= process(T,

            function(element)
                if type(element) == "number" then 
                   return element
                end
            end
            )


Hey, it looks like a lot of valid comments of yours are invisible to normal users because they (and you) are marked as 'dead' in the system. I've vouched for as many as seemed valid. You might want to message one of the mods to ask to be marked as undead, or something.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: