mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-25 15: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
|
||||
end
|
||||
end
|
||||
return t
|
||||
end
|
||||
|
||||
--performs a left to right reduction of t using f, with seed as the initial value
|
||||
|
Loading…
Reference in New Issue
Block a user