Merge pull request #49 from Sheepolution/patch-2

Don't have inplace methods return a new sequence
This commit is contained in:
Max Cahill 2022-02-24 11:05:22 +11:00 committed by GitHub
commit 0fdddab5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,9 +65,7 @@ end
--(common case where something returns another sequence for chaining) --(common case where something returns another sequence for chaining)
for _, v in ipairs({ for _, v in ipairs({
"map", "map",
"map_inplace",
"filter", "filter",
"filter_inplace",
"remove_if", "remove_if",
"zip", "zip",
"stitch", "stitch",
@ -85,6 +83,8 @@ end
--(cases where we don't want to construct a new sequence) --(cases where we don't want to construct a new sequence)
for _, v in ipairs({ for _, v in ipairs({
"map_inplace",
"filter_inplace",
"foreach", "foreach",
"reduce", "reduce",
"any", "any",