Skip to main content

function

str

str[T: Stringable](value: T) -> String

Get the string representation of a value.

Parameters:

  • T (Stringable): The type conforming to Stringable.

Args:

  • value (T): The object to get the string representation of.

Returns:

The string representation of the object.

str(value: None) -> String

Get the string representation of the None type.

Args:

  • value (None): The object to get the string representation of.

Returns:

The string representation of the object.

str[T: StringableRaising](value: T) -> String

Get the string representation of a value.

Parameters:

  • T (StringableRaising): The type conforming to Stringable.

Args:

  • value (T): The object to get the string representation of.

Returns:

The string representation of the object.

Raises:

If there is an error when computing the string representation of the type.