Skip to main content

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.