Anonymous user
Remove duplicate elements: Difference between revisions
→{{header|F#}}
Line 227:
Set = sets:from_list(List).</lang>
=={{header|F sharp|F#}}==
The simplest way is to build a set from the given array (this actually works for any enumerable input sequence type, not just arrays):
<lang fsharp>
Line 236:
val it : Set<int> = seq [1; 2; 3; 4]
</lang>
=={{header|Factor}}==
|