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:
Int: 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:
Int: 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!