>>54
allow me to rephrase:
Be resourceful. You are welcome to find a library providing shallow copy and comparison functions, or a balanced immutable red black tree.
Shallow copy and comparison functions are easy as shit to write though. The kicker is integrating shallow and deep equality with the tables. It really sucks when you need to use tupple keys for a table in lua. It just sucks man.