| Gentee Programming Language > Documentation > Libraries | Download documentation |
Variables of the arr type allow you to work with arrays.
Operations defined for the variable of arr type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation Syntax Return type Comments Variable description - Array description. If no item type is specified, uint is used. [] item type Get item i. * uint Get the number of items. += arr Add a string to an array of strings.
Add a number to a numeric array.foreach The option of using in the foreach operator. foreach cur, myarr
{
...
}
| arr.clear | Clearing an array |
| arr.cut | Reducing an array |
| arr.del | Deleting items |
| arr.expand | Adding items |
| arr.insert | Inserts elements |
| arr.move | Move an item |
| arr.ptr | Pointer to data |
| arr.reserve | Reserving position |
| arr.sort | Sorting an array |
| arr.sortstr | Sorting strings |
Copyright © 2004-2006 Gentee Inc. All rights reserved. |