Logo

Programming-Idioms

History of Idiom 117 > diff from v20 to v21

Edit summary for version 21 by :
New Elixir implementation by user [iamd3vil]

Version 20

2016-02-17, 03:49:28

Version 21

2016-02-17, 05:38:45

Idiom #117 Get list size

Set n to the number of elements of list x.

Idiom #117 Get list size

Set n to the number of elements of list x.

Code
n = Enum.count(x)
Doc URL
http://elixir-lang.org/docs/stable/elixir/Enum.html#count/1