Mojo function
repr
repr[T: Representable](value: T) -> String
Returns the string representation of the given value.
Parameters:
- βT (
Representable
): The type ofvalue
. Must implement theRepresentable
trait.
Args:
- βvalue (
T
): The value to get the string representation of.
Returns:
The string representation of the given value.
repr(value: None) -> String
Returns the string representation of None
.
Args:
- βvalue (
None
): ANone
value.
Returns:
The string representation of None
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?