Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

f# set function how to ignore duplicates

let lengths = set["four"; "five"; "six"; "seven"]
              |> Set.map (fun s -> s.Length)
// val lengths : Set<int> = set [3; 4; 5]
Source by bradcollins.com #
 
PREVIOUS NEXT
Tagged: #set #function #ignore #duplicates
ADD COMMENT
Topic
Name
4+5 =