Logo

Programming-Idioms

History of Idiom 118 > diff from v42 to v43

Edit summary for version 43 by programming-idioms.org:
[Elixir] Dead link: play.elixirbyexample.com has been down for a while

Version 42

2019-10-14, 12:28:16

Version 43

2019-10-14, 12:28:21

Idiom #118 List to set

Create set y from list x.
x may contain duplicates. y is unordered and has no repeated values.

Illustration

Idiom #118 List to set

Create set y from list x.
x may contain duplicates. y is unordered and has no repeated values.

Illustration
Code
y = MapSet.new(x)
Code
y = MapSet.new(x)
Doc URL
http://elixir-lang.org/docs/stable/elixir/MapSet.html#new/1
Doc URL
http://elixir-lang.org/docs/stable/elixir/MapSet.html#new/1
Demo URL
http://play.elixirbyexample.com/s/362a9f6e90