Funzione Set.singleton<'T> (F#)

Set che contiene l'elemento specificato.

Percorso di spazio dei nomi/modulo: Microsoft.FSharp.Collections.Set

Assembly: FSharp.Core (in FSharp.Core.dll)

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

// Usage:
Set.singleton value

Parametri

  • value
    Tipo: 'T

    Valore per il set contenitore.

Valore restituito

Set contenente value.

Note

Questa funzione è denominata Singleton negli assembly compilati. Utilizzare questo nome se si accede alla funzione da un linguaggio diverso da F# o tramite reflection.

Piattaforme

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

Informazioni sulla versione

F# Runtime

Supportato in: 2.0, 4.0

Silverlight

Supportato in: 3

Vedere anche

Riferimenti

Modulo Collections.Set (F#)

Spazio dei nomi Microsoft.FSharp.Collections (F#)