Currying: Difference between revisions

Content added Content deleted
m (→‎{{header|Lua}}: another implementation)
m (→‎another implementation: fix header markup @ lua)
Line 1,108: Line 1,108:
assert(add2(5) == 2+5)
assert(add2(5) == 2+5)
</lang>
</lang>
== another implementation ==
=== another implementation ===
Proper currying, tail call without array packing/unpack.
Proper currying, tail call without array packing/unpack.
<lang lua>
<lang lua>