Logo

Programming-Idioms

History of Idiom 118 > diff from v36 to v37

Edit summary for version 37 by foobar:
New Lisp implementation by user [foobar]

Version 36

2019-09-26, 15:21:04

Version 37

2019-09-26, 15:55:32

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
(setf y (remove-duplicates x))