Skip to main content

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.

Args:

  • ​seq (Variadic): The variadic sequence to measure.

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.

Args:

  • ​seq (Variadic): The variadic sequence of types to measure.

Returns:

Int: The length of the variadic sequence.

Was this page helpful?