Skip to content

Instantly share code, notes, and snippets.

@jyrkive
Created June 24, 2018 13:38
Show Gist options
  • Save jyrkive/0e5f417e21972362392a17ecdf25039e to your computer and use it in GitHub Desktop.
Save jyrkive/0e5f417e21972362392a17ecdf25039e to your computer and use it in GitHub Desktop.
local function mutate_table(t, f)
for i, v in ipairs(t) do f(v, i) end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment