Set.intersectMany<'T> 関数 (F#)

更新 : 2010 年 5 月

セットのシーケンスの積集合を計算します。 シーケンスを空にすることはできません。

名前空間/モジュール パス: Microsoft.FSharp.Collections.Set

アセンブリ: FSharp.Core (FSharp.Core.dll)

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

// Usage:
Set.intersectMany sets

パラメーター

  • sets
    型: seq<Set<'T>>

    積集合を求めるセットのシーケンス。

戻り値

入力セットの積集合。

解説

この関数は、コンパイルされたアセンブリでは IntersectMany という名前です。 F# 以外の言語から、またはリフレクションを使用してこの関数にアクセスする場合は、この名前を使用します。

使用例

Set.intersectMany 関数の使用方法を次のコード例に示します。

let seqOfSets =
    seq { for i in 1 .. 9 do yield Set.ofList [ i .. i .. 10000 ] }  
let setResult = Set.intersectMany seqOfSets
printfn "Numbers between 1 and 10,000 that are divisible by "
printfn "all the numbers from 1 to 9:"
printfn "%A" setResult

出力

  

プラットフォーム

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 モジュール (F#)

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

履歴の変更

日付

履歴

理由

2010 年 5 月

コード例を追加。

情報の拡充