NAME

unpack - convert a packed array to a generic array or list

SYNOPSIS

arr.unpack()

DESCRIPTION

The unpack() method converts a packed array (such as PackInt, PackFloat, etc.) into a generic List or Array (an array of OadlVar) with the same shape and dimensions.

If the array is already a generic list, it is returned unchanged.

RETURN VALUE

A generic Array or List containing the same elements as arr.

ERRORS

ArgCheck if any arguments are provided.
TypeCheck if arr is not an array.

EXAMPLE

    a = [1,2,3]
    a[1] = "hello"
Illegal type
    b = a.unpack()
    b[1] = "hello"
    b
1 hello 3

SEE ALSO

pack
typeof