f# set function how to ignore duplicates

Code 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]