diff --git a/functional.lua b/functional.lua index 5a2a49f..086eb0d 100644 --- a/functional.lua +++ b/functional.lua @@ -111,7 +111,7 @@ function functional.filter_inplace(t, f) t[i] = nil end end - return r + return t end -- complement of filter