Programming-Idioms

History of Idiom 54 > diff from v15 to v16

Edit summary for version 16 :
New Csharp implementation by user [javasucks]

Version 15

2016-01-01, 00:31:24

Version 16

2016-02-17, 11:33:33

Idiom #54 Compute sum of integers

Calculate the sum s of integer list x.

Idiom #54 Compute sum of integers

Calculate the sum s of integer list x.

Imports
using System.Collections.Generic;
using System.Linq;
Code
var s = x.Sum();