|
On Fri, Dec 5, 2008 at 10:38 AM, mayamatakeshi <mayamatakeshi@gmail.com> wrote: >> function compose(f,g) >>> return function(x) >>> return f(g(x)) >>> end >>> end change to: function compose(f,g) return function(...) return f(g(...)) end end to make it work on any number of parameters -- Javier