mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-29 08:14:35 +00:00
Return table in foreach for chaining
This commit is contained in:
parent
0fdddab5b9
commit
3c6aaf1a76
@ -38,6 +38,7 @@ function functional.foreach(t, f)
|
|||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
--performs a left to right reduction of t using f, with seed as the initial value
|
--performs a left to right reduction of t using f, with seed as the initial value
|
||||||
|
Loading…
Reference in New Issue
Block a user