Logo

Programming-Idioms

History of Idiom 118 > diff from v67 to v68

Edit summary for version 68 by programming-idioms.org:
Lead: better style

Version 67

2022-02-24, 18:09:26

Version 68

2022-03-03, 10:06:31

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 the set y from the 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