Set.intersectMany<'T> — Funkcja (F#)

Oblicza punkt przecięcia sekwencji zestawów.Sekwencja musi być niepustym.

Ścieżka obszaru nazw/modułu: Microsoft.FSharp.Collections.Set

Zgromadzenie: FSharp.Core (w FSharp.Core.dll)

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

// Usage:
Set.intersectMany sets

Parametry

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

    Sekwencja ustawia się przecinają.

Wartość zwracana

Przecięcie wejściowych zestawów.

Uwagi

Ta funkcja o nazwie IntersectMany w skompilowane zestawy.Jeżeli języka, niż F# lub przez odbicie, uzyskują dostęp do funkcji, należy użyć tej nazwy.

Przykład

Poniższy przykład kodu ilustruje użycie Set.intersectMany funkcji.

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

Dane wyjściowe

  

Platformy

Windows 8, Windows 7, Windows Server 2012 Windows Server 2008 R2

Informacje o wersji

F# Core wersji biblioteki

Obsługiwane: 2.0, 4.0, przenośne

Zobacz też

Informacje

Collections.Set — Moduł (F#)

Microsoft.FSharp.Collections — Przestrzeń nazw (F#)