Command: :resize

NEST HelpDesk Command Index NEST Quick Reference

Name:
 :resize - Change the internal size of an array.
Synopsis:
 array n resize -> array.
Description:
 resize changes the size of the supplied array 
independent of the current capacity.
resize is used to free memory by shrinking arrays whose capacity 
has grown too large.

If the new size is smaller than the array, the trailing elements
 are lost.
SeeAlso:capacity reserve shrink
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/sli/slidata.cc

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative