diff --git a/functional.lua b/functional.lua index 127b430..8165652 100644 --- a/functional.lua +++ b/functional.lua @@ -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