Skip to main content

Mojo function

repr

repr[T: Representable](value: T) -> String

Returns the string representation of the given value.

Parameters:

  • T (Representable): The type of value. Must implement the Representable trait.

Args:

  • value (T): The value to get the string representation of.

Returns:

String: The string representation of the given value.

repr[U: Copyable & Writable](value: LinkedList[U]) -> String

Returns the string representation of an LinkedList[U].

Parameters:

Args:

  • value (LinkedList): A LinkedList of element type U.

Returns:

String: The string representation of LinkedList[U].

repr(value: None) -> String

Returns the string representation of None.

Args:

  • value (None): A None value.

Returns:

String: The string representation of None.

Was this page helpful?