mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-25 23:24:35 +00:00
Don't have inplace methods return a new sequence
This commit is contained in:
parent
8fd402b125
commit
6df4b4bddd
@ -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