Logo

Programming-Idioms

History of Idiom 118 > diff from v8 to v9

Edit summary for version 9 by :
New Haskell implementation by user [JH]

Version 8

2016-01-29, 01:36:27

Version 9

2016-02-16, 18:00:30

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.

Imports
import Data.Set as Set
Code
y = Set.fromList x