Programming-Idioms

History of Idiom 54 > diff from v37 to v38

Edit summary for version 38 :
[Elixir] Dead link: play.elixirbyexample.com has been down for a while

Version 37

2019-10-11, 22:27:06

Version 38

2019-10-14, 12:25:32

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 = Enum.sum(x)
Code
s = Enum.sum(x)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Enum.html#sum/1
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Enum.html#sum/1
Demo URL
http://play.elixirbyexample.com/s/83caeb19b2