end
end
- if inplace and write < start_length then
+ if inplace and write <= start_length then
for i=write,start_length do
outa[i] = nil;
end
-- Setup methods from array_base
for method, f in pairs(array_base) do
- local method = method; -- Yes, this is necessary :)
local base_method = f;
-- Setup global array method which makes new array
array[method] = function (old_a, ...)