2 ms·
int[] a = int[]{2,3,3,4} int s = a.Sum(i => i) Thats C# by the way - lambda statements have implicit return statements. Let me see, Ruby, Haskell and Scal
by tomjen3 16y ago
int[] a = int[]{2,3,3,4}
int s = a.Sum(i => i)
Thats C# by the way - lambda statements have implicit return statements.
Let me see, Ruby, Haskell and Scala uses this syntac.