Programming-Idioms

History of Idiom 54 > diff from v5 to v6

Edit summary for version 6 :

Version 5

2015-08-20, 10:56:10

Version 6

2015-08-20, 16:26:21

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
import std.algorithm.iteration;
Code
auto s = x.sum();