1. Dominic Kexel
  2. adler32

Commits

Dominic Kexel  committed e32ad4a

removed unneccessary lambda in C#

  • Participants
  • Parent commits 0663eea
  • Branches default

Comments (0)

Files changed (1)

File adler32.cs

View file
  • Ignore whitespace
         public static int Adler32(byte[] data)
         {
             var seed = Tuple.Create(1, 0);
-            var folded = data.Aggregate(seed, (acc, current) => Proceed(acc, current));
+            var folded = data.Aggregate(seed, Proceed);
             return folded.Item2 << 16 | folded.Item1;
         }
     }