History of Idiom 54 > diff from v21 to v22
Edit summary for version 22 by steenslag:
[Ruby] Use new feature
[Ruby] Use new feature
↷
Version 21
2016-04-07, 07:03:57
Version 22
2017-03-26, 22:00:59
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.
Comments bubble
s = x.reduce(:+)