Mojo function
str
str[T: Stringable](value: T) -> String
Get the string representation of a value.
Deprecated:
the str
function is deprecated, use the String
constructor instead
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[T: StringableRaising](value: T) -> String
Get the string representation of a value.
Deprecated:
the str
function is deprecated, use the String
constructor instead
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!