From eae1849c165cce6ffe7b4382d905a710836c701e Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Tue, 12 Oct 2021 11:51:17 +1100 Subject: [PATCH] fixed filter_inplace doesn't return anything, thanks sheepolution --- functional.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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