Gentee Programming Language > Documentation > Libraries Download documentation

Collections

Variables of the collection type are used to initialize arrays and structures; furthermore, you can apply them to pass a variable number of arguments of different types to functions.

  • Operations
  • Methods

    Operations

    Operations defined for the variable of collection type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
     
    OperationSyntaxReturn typeComments
    ** collectionuintGets the amount of elements in the collection.
    =collection = collectioncollectionCollection copying.
    +=collection += anytypecollectionAppends an element to the collection. An element of any type are required.

    Methods

    collection.appendAppends a collection
    collection.clearClear a collection
    collection.gettypeGets an element type of a collection
    collection.ptrGets a pointer to a collection element
    collection.valGets a value of a collection element


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