Skip to content

Instantly share code, notes, and snippets.

View DaZombieKiller's full-sized avatar

Benjamin Moir DaZombieKiller

  • Gold Coast, Australia
View GitHub Profile
@DaZombieKiller
DaZombieKiller / deepcopy.lua
Last active March 19, 2022 12:03 — forked from Deco/deepcopy.lua
Lua Non-recursive Deep-copy
--[[ deepcopy.lua
Changes in this fork
====================
- Added support for table.unpack (Lua 5.2+)
Deep-copy function for Lua - v0.2
==============================
- Does not overflow the stack.
- Maintains cyclic-references