Mojo 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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?