Logo

Programming-Idioms

History of Idiom 118 > diff from v39 to v40

Edit summary for version 40 by L3viathan:
New Python implementation by user [L3viathan]

Version 39

2019-09-27, 11:27:51

Version 40

2019-09-27, 14:27:31

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
set(x)