f# set function how to ignore duplicates code example
Example: 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]
let lengths = set["four"; "five"; "six"; "seven"]
|> Set.map (fun s -> s.Length)
// val lengths : Set<int> = set [3; 4; 5]