From 6df4b4bdddd8a4931d5baacb23b870ed1d5becb7 Mon Sep 17 00:00:00 2001 From: Sheepolution Date: Tue, 22 Feb 2022 05:01:27 +0100 Subject: [PATCH] Don't have inplace methods return a new sequence --- sequence.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sequence.lua b/sequence.lua index f6c2927..99374ce 100644 --- a/sequence.lua +++ b/sequence.lua @@ -65,9 +65,7 @@ end --(common case where something returns another sequence for chaining) for _, v in ipairs({ "map", - "map_inplace", "filter", - "filter_inplace", "remove_if", "zip", "stitch", @@ -85,6 +83,8 @@ end --(cases where we don't want to construct a new sequence) for _, v in ipairs({ + "map_inplace", + "filter_inplace", "foreach", "reduce", "any",