Gentee Programming Language > Documentation > Libraries Download documentation

arr.reserve

Reserve a position in an array. It is possible to add and remove items in arrays when the program is running. If the number of items is not known beforehand, but it can be large, it is better to reserve positions for items that will be added from the beginning.
 
arr arr.reserve(
      uint   count
)

Parameters

countThe number of items being reserved.

Return value

Returns the object which method has been called.

See also

    Arrays


 Copyright © 2004-2006 Gentee Inc. All rights reserved.