Apply a callback to an array: Difference between revisions

(Add new section for Lisaac)
Line 717:
end
</lang>
Together with our array and and a square function this yields:
<lang lua>
myFunc = function(x) return x*x end
Anonymous user