mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
fixed set not specifying deep or shallow copy
This commit is contained in:
parent
b6ca4c7740
commit
de5c803389
2
set.lua
2
set.lua
@ -80,7 +80,7 @@ end
|
|||||||
|
|
||||||
--get a copy of the values in the set, as a simple table
|
--get a copy of the values in the set, as a simple table
|
||||||
function set:values()
|
function set:values()
|
||||||
return table.copy(self._ordered)
|
return table.shallow_copy(self._ordered)
|
||||||
end
|
end
|
||||||
|
|
||||||
--get a direct reference to the internal list of values in the set
|
--get a direct reference to the internal list of values in the set
|
||||||
|
Loading…
Reference in New Issue
Block a user