#### History of Idiom 54 > diff from v14 to v15

Edit summary for version 15 :

New Java implementation by user [lck]

New Java implementation by user [lck]

↷

#### Version 14

2015-11-30, 12:37:29

#### Version 15

2016-01-01, 00:31:24

# 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.

##### Code

int s = 0; for (int i : x) { s += i; }