diff options
-rw-r--r-- | util/array.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/array.lua b/util/array.lua index 11ff651c..8b9102bf 100644 --- a/util/array.lua +++ b/util/array.lua @@ -42,6 +42,7 @@ function array:shuffle() local r = math.random(i,len); self[i], self[r] = self[r], self[i]; end + return self; end function array:reverse() @@ -50,6 +51,7 @@ function array:reverse() self:push(self[i]); self:pop(i); end + return self; end function array:append(array) |