mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 14:14:36 +00:00
Merge pull request #49 from Sheepolution/patch-2
Don't have inplace methods return a new sequence
This commit is contained in:
commit
0fdddab5b9
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user