Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.41 KB | None | 0 0
  1. Index: tango/core/Array.d
  2. ===================================================================
  3. --- tango/core/Array.d  (revision 5688)
  4. +++ tango/core/Array.d  (working copy)
  5. @@ -3568,9 +3568,8 @@
  6.         {
  7.             if (array.length == 0) return ReturnTypeOf!(Func).init;
  8.             auto e = array[0];
  9. -           foreach (i, a; array)
  10. +           foreach (a; array[1..$])
  11.             {
  12. -               if (i == 0) continue;
  13.                 e = func(e, a);
  14.             }
  15.             return e;
Add Comment
Please, Sign In to add comment