Logo

Programming-Idioms

History of Idiom 118 > diff from v4 to v5

Edit summary for version 5 by :
New Python implementation by user [cym13]

Version 4

2016-01-15, 12:47:14

Version 5

2016-01-24, 03:07:10

Idiom #118 List to set

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

Idiom #118 List to set

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

Code
y = set(x)