Mojo function
repr
repr[T: Writable](value: T) -> String
Returns the string representation of the given value.
Parameters:
- โT (
Writable): The type ofvalue. Must implement theWritabletrait.
Args:
- โvalue (
T): The value to get the string representation of.
Returns:
String: The string representation of the given value.
repr(value: None) -> String
Returns the string representation of None.
Args:
- โvalue (
None): ANonevalue.
Returns:
String: The string representation of None.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!