Investment Studio > Expressions > Functions > Reference > ARRAY

array array(reference cell_reference)

Returns the array owned by the referenced array-valued cell.

When referenced as plain cells, array-valued cells only return the value of their first array element. Use this function to get the whole array.

Example

Given a symbol _my_array = {{1, 2}, {3, 4}}, the expression

=_my_array

returns 1, while

=array(_my_array)

returns {{1, 2}, {3, 4}}.

See also choose, index, subarray.