Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: tango/core/Array.d
- ===================================================================
- --- tango/core/Array.d (revision 5688)
- +++ tango/core/Array.d (working copy)
- @@ -3568,9 +3568,8 @@
- {
- if (array.length == 0) return ReturnTypeOf!(Func).init;
- auto e = array[0];
- - foreach (i, a; array)
- + foreach (a; array[1..$])
- {
- - if (i == 0) continue;
- e = func(e, a);
- }
- return e;
Add Comment
Please, Sign In to add comment