[Array] toString | Manual

[Array] toString

Returns a string representation of the array and its contents. This representation will be encoded in the Citrine language itself and is therefore evallable.
Usage:

 
 a := Array ← 'hello' ; 'world'.
 b := a toString.
 c := b eval.
 x := c @ 1. #world
 
 toString messages are implicitly send by some objects, for instance when
 attempting to write an Array using a Pen.

 You can also use the alias 'serialize'.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.