📜  f# 设置函数如何忽略重复项 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:52.504000             🧑  作者: Mango

代码示例1
let lengths = set["four"; "five"; "six"; "seven"]
              |> Set.map (fun s -> s.Length)
// val lengths : Set = set [3; 4; 5]