For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
repr
def 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.
def repr(value: None) -> String
Returns the string representation of None.
Args:
- value (
None): ANonevalue.
Returns:
String: The string representation of None.