Jump to content

Remove duplicate elements: Difference between revisions

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}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.