Mojo function
len
len[T: Sized](value: T) -> Int
Get the length of a value.
Parameters:
- T (
Sized
): The Sized type.
Args:
- value (
T
): The object to get the length of.
Returns:
The length of the object.
len[T: SizedRaising](value: T) -> Int
Get the length of a value.
Parameters:
- T (
SizedRaising
): The Sized type.
Args:
- value (
T
): The object to get the length of.
Returns:
The length of the object.
Raises:
If the length cannot be computed.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!