Skip to content

ReadonlySet

[<Interface>]
type ReadonlySet<'T> =
    abstract member size: float
    abstract member difference<'U> (other: ReadonlySetLike<'U>) : Set<'T>
    abstract member entries () : Iterable<'T * 'T>
    abstract member forEach (callbackfn: callbackfn<'T>, ?thisArg: obj) : unit
    abstract member has (value: 'T) : bool
    abstract member intersection<'U> (other: ReadonlySetLike<'U>) : Set<obj>
    abstract member isDisjointFrom (other: ReadonlySetLike<obj>) : bool
    abstract member isSubsetOf (other: ReadonlySetLike<obj>) : bool
    abstract member isSupersetOf (other: ReadonlySetLike<obj>) : bool
    abstract member keys () : Iterable<'T>
    abstract member symmetricDifference<'U> (other: ReadonlySetLike<'U>) : Set<U2<'T,'U>>
    abstract member union<'U> (other: ReadonlySetLike<'U>) : Set<U2<'T,'U>>
    abstract member values () : Iterable<'T>
AssemblyGlutinum.Types
Inheritsobj \| null
ImplementsIterable<'T>
Attributes[<AllowNullLiteral>] [<Interface>]

Declared inside

forEach

Properties

abstract member size: float

Methods

abstract member difference<'U> (other: ReadonlySetLike<'U>) : Set<'T>

Returns. a new Set containing all the elements in this Set which are not also in the argument.

abstract member entries () : Iterable<'T * 'T>

Returns an iterable of [v,v] pairs for every value v in the set.

abstract member forEach (callbackfn: callbackfn<'T>, ?thisArg: obj) : unit
abstract member has (value: 'T) : bool
abstract member intersection<'U> (other: ReadonlySetLike<'U>) : Set<obj>

Returns. a new Set containing all the elements which are both in this Set and in the argument.

abstract member isDisjointFrom (other: ReadonlySetLike<obj>) : bool

Returns. a boolean indicating whether this Set has no elements in common with the argument.

abstract member isSubsetOf (other: ReadonlySetLike<obj>) : bool

Returns. a boolean indicating whether all the elements in this Set are also in the argument.

abstract member isSupersetOf (other: ReadonlySetLike<obj>) : bool

Returns. a boolean indicating whether all the elements in the argument are also in this Set.

abstract member keys () : Iterable<'T>

Despite its name, returns an iterable of the values in the set.

abstract member symmetricDifference<'U> (other: ReadonlySetLike<'U>) : Set<U2<'T,'U>>

Returns. a new Set containing all the elements which are in either this Set or in the argument, but not in both.

abstract member union<'U> (other: ReadonlySetLike<'U>) : Set<U2<'T,'U>>

Returns. a new Set containing all the elements in this Set and also all the elements in the argument.

abstract member values () : Iterable<'T>

Returns an iterable of values in the set.