We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2b5d1 commit 3ead9b1Copy full SHA for 3ead9b1
array.lua
@@ -169,11 +169,17 @@ array = {
169
raises_error(array, obj, 'concat')
170
raises_error(array, obj2, 'concat')
171
172
+ local output = {}
173
+
174
+ for i=1, #obj do
175
+ table.insert(output, obj[i])
176
+ end
177
178
for i=1, #obj2 do
- table.insert(obj, obj2[i])
179
+ table.insert(output, obj2[i])
180
end
181
- return obj
182
+ return output
183
end,
184
185
uniq = function(obj)
0 commit comments