diff --git a/sequence.lua b/sequence.lua index 7b3d250..029212c 100644 --- a/sequence.lua +++ b/sequence.lua @@ -42,7 +42,7 @@ function sequence:foreach(f) end function sequence:reduce(f, o) - return functional.foreach(self, f, o) + return functional.reduce(self, f, o) end function sequence:map(f)