2
0

misc.lua 185 B

123456789
  1. --- @function modpol.copy_table
  2. -- Returns a copy of the table inputted
  3. function modpol.copy_table(t)
  4. local t2 = {}
  5. for k,v in pairs(t) do
  6. t2[k] = v
  7. end
  8. return t2
  9. end