Logo

Programming-Idioms

History of Idiom 118 > diff from v40 to v41

Edit summary for version 41 by nopeslide:
New Erlang implementation by user [nopeslide]

Version 40

2019-09-27, 14:27:31

Version 41

2019-09-29, 11:36:29

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 = sets:from_list(X).
Doc URL
http://erlang.org/doc/man/sets.html#from_list-1