e53245e62d
Error flow is still klunky. We'll need to implement the output region for that.
7 lines
128 B
Plaintext
7 lines
128 B
Plaintext
map = function(arr, f)
|
|
local result = {}
|
|
for _, x in ipairs(arr) do
|
|
table.insert(result, f(x))
|
|
end
|
|
return result
|
|
end |