Logo

Programming-Idioms

History of Idiom 118 > diff from v63 to v64

Edit summary for version 64 by Dave Mason:
New Smalltalk implementation by user [Dave Mason]

Version 63

2021-10-02, 11:13:08

Version 64

2021-10-12, 05:43:46

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
Code
y := x asSet