FuncType - v0.45.0
    Preparing search index...

    Variable Set

    Set: <A>(iterable?: Iterable<A, any, any>) => Set<A> & {
        empty: <A extends unknown>() => Set<A>;
        fromBinary: <A>(binary: string) => Set<A>;
        fromJSON: <A>(json: string) => Set<A>;
        fromYAML: <A>(yaml: string) => Set<A>;
        of: <A extends unknown>(...values: A[]) => Set<A>;
    }

    Type Declaration

      • <A>(iterable?: Iterable<A, any, any>): Set<A>
      • Type Parameters

        • A

        Parameters

        • Optionaliterable: Iterable<A, any, any>

        Returns Set<A>

    • empty: <A extends unknown>() => Set<A>

      Creates an empty Set Returns a singleton instance for efficiency

    • fromBinary: <A>(binary: string) => Set<A>

      Creates a Set from binary string

    • fromJSON: <A>(json: string) => Set<A>

      Creates a Set from JSON string

    • fromYAML: <A>(yaml: string) => Set<A>

      Creates a Set from YAML string

    • of: <A extends unknown>(...values: A[]) => Set<A>

      Creates a Set from variadic arguments