Programming-Idioms

History of Idiom 54 > diff from v39 to v40

Edit summary for version 40 :
[Elixir] 404

Version 39

2019-12-31, 18:41:13

Version 40

2020-05-10, 21:43:48

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.

Variables
s,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
https://hexdocs.pm/elixir/Enum.html#sum/1