mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-25 23:24:35 +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)
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user