Programming-Idioms

History of Idiom 54 > diff from v19 to v20

Edit summary for version 20 :
New Erlang implementation by user [elbrujohalcon]

Version 19

2016-02-18, 18:33:00

Version 20

2016-04-05, 04:28:04

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
S = lists:sum(X).
Doc URL
http://erldocs.com/maint/stdlib/lists.html?i=55&search=lists:#sum/1