Mojo function
variadic_size
variadic_size[T: AnyType](seq: Variadic[T]) -> Int
Returns the length of a variadic sequence.
Parameters:
- T (
AnyType
): The type of values in the sequence.
Returns:
Int
: The length of the variadic sequence.
variadic_size[T: AnyTrait[AnyType]](seq: Variadic[T]) -> Int
Returns the length of a variadic sequence.
Parameters:
- T (
AnyTrait
): The trait that types in the sequence must conform to.
Returns:
Int
: The length of the variadic sequence.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!