Lasso Soft Inc. > Home

[ array->reserve ]


The [array->reserve] method reserves space for the specified number of elements in an array. Requires one parameter which is an integer specifying the expected size of the array. [array->reserve] can be used if the size of an array is known before hand.

Lasso Programming:

The size of the array is not changed by array->reserve, but Lasso will internally make enough room for the specified number of elements. Lasso can allocate memory more efficiently if it knows the expected size of the array rather than allocating space for one additional element each time one is inserted.

  • Syntax
array->reserve( number_of_elements )

No examples found

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft