Skip to main content

string

Overloads

NameDescription
string(Object x) -> ObjectFormats a ranged container as a string.
string(Object x) -> ObjectFormats a pair-like value as a string.

string(Object x) -> Object

Formats a ranged container as a string.

Parameters

  • x: The container to format.

Returns

The formatted container.

Example

string([1, 2, 3])
//-> [1, 2, 3]

string(Object x) -> Object

Formats a pair-like value as a string.

Parameters

  • x: A value exposing first and second.

Returns

The formatted pair.

Example

string(Pair(1, 2))
//-> <1, 2>