Hierarchy

  • Creates a Seq.

    Returns a particular kind of Seq based on the input.

    • If a Seq, that same Seq.
    • If an Collection, a Seq of the same kind (Keyed, Indexed, or Set).
    • If an Array-like, an Seq.Indexed.
    • If an Iterable Object, an Seq.Indexed.
    • If an Object, a Seq.Keyed.

    Note: An Iterator itself will be treated as an object, becoming a Seq.Keyed, which is usually not what you want. You should turn your Iterator Object into an iterable object by defining a Symbol.iterator (or @@iterator) method which returns this.

    Note: Seq is a conversion function and not a class, and does not use the new keyword during construction.

    Type Parameters

    Parameters

    • seq: S

    Returns S

  • Type Parameters

    • K

    • V

    Parameters

    Returns <internal>.Keyed<K, V>

  • Type Parameters

    • T

    Parameters

    Returns <internal>.Set<T>

  • Type Parameters

    • T

    Parameters

    Returns <internal>.Indexed<T>

  • Type Parameters

    • V

    Parameters

    • obj: { [key: string]: V }
      • [key: string]: V

    Returns <internal>.Keyed<string, V>

  • Type Parameters

    • K = unknown

    • V = unknown

    Returns <internal>.Seq<K, V>

Generated using TypeDoc