From de5c8033896405656da7bf711a055ef0accec0ea Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Mon, 7 Mar 2022 11:59:23 +1100 Subject: [PATCH] fixed set not specifying deep or shallow copy --- set.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set.lua b/set.lua index 15a3772..96623a6 100644 --- a/set.lua +++ b/set.lua @@ -80,7 +80,7 @@ end --get a copy of the values in the set, as a simple table function set:values() - return table.copy(self._ordered) + return table.shallow_copy(self._ordered) end --get a direct reference to the internal list of values in the set