Share via


Collections.Set<'T> 建構函式 (F#)

建立集合,這個集合包含從所指定序列中取出的項目。

命名空間/模組路徑: Microsoft.FSharp.Collections

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
new Set : seq<'T> -> Set<'T> (requires comparison)

// Usage:
new Set (elements)

參數

  • elements
    型別:seq<'T>

    輸入序列。

傳回值

結果集。

平台

Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2

版本資訊

F# 執行階段

支援版本:2.0、4.0

Silverlight

支援版本:3

請參閱

參考

Collections.Set<'T> 類別 (F#)

Microsoft.FSharp.Collections 命名空間 (F#)