string
Overloads
| Name | Description |
|---|---|
string(Object x) -> Object | Formats a ranged container as a string. |
string(Object x) -> Object | Formats 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
firstandsecond.
Returns
The formatted pair.
Example
string(Pair(1, 2))
//-> <1, 2>