Required Initializerswift 6.0.1Swift

    init(_:)

    Creates a new instance of a collection containing the elements of a sequence.

    init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element

    Parameters

    elements

    The sequence of elements for the new collection. elements must be finite.

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (17) members.

    Type members

    Instance members

    Citizens in Swift

    Default implementations

    • init<S>(S)

      Creates a new instance of a collection containing the elements of a sequence.

    Available in Cxx

    Default implementations

    • init<C>(C)

      Creates a collection containing the elements of a C++ container.

    Extension in AsyncAlgorithms

    Default implementations