Creates a vector from the given sequence.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
init<S>(_ scalars: S) where S : Sequence, Self.Scalar == S.Element
Parameters
scalars
The elements to use in the vector.
Discussion
Precondition: scalars
must have the same number of elements as the vector type.