next up previous contents index
Next: sort! Up: PrimitiveArrayType Previous: read,write   Contents   Index


resize!


Usage

resize!(a, n, m)


Signature

resize!: (%,MachineInteger,MachineInteger) $\to$ %


Parameter Type Description
a % a primitive array
n, m MachineInteger nonnegative sizes


Returns

Returns a primitive array of $m$ entries, whose first $n$ entries are the first $n$ entries of $a$ and whose remaining entries are uninitialized.


Remarks

resize! may free the space previously used by $a$, so it is unsafe to use the variable $a$ after the call, unless it has been assigned to the result of the call, as in a := resize!(a, n, m).



Manuel Bronstein 2004-06-28