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.
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.
array->reserve( number_of_elements )
No examples 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments