Logo

Programming-Idioms

History of Idiom 118 > diff from v60 to v61

Edit summary for version 61 by programming-idioms.org:
Linked to idiom #255 [Print set]

Version 60

2021-10-01, 21:46:36

Version 61

2021-10-02, 11:08:30

Idiom #118 List to set

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

Turning the list [a,b,c,b] into the set {c,a,b}

Idiom #118 List to set

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

Turning the list [a,b,c,b] into the set {c,a,b}
Variables
y,x
Variables
y,x