    [NAME]
    ALL.dao.type.list

    [TITLE]
    List Container Type

    [DESCRIPTION]

    In Dao, list is supported as a generic container type which can contain any data type.
    Internally it is implemented as a dynamic array.

     0.1  Definition

       1  ListEnumeration ::= [ 'list' ] '{' ExpressionList '}'
       2
       3  # Items of Arithmetic Progression sequence: count ~ start [ ~ step ]
       4  ListByArithProg ::= [ 'list' ] '{' Expression ':' [ Expression ':' ] Expression '}'
       5
       6  List ::= ListEnumeration | ListByArithProg

    When a list is created by enumeration without explicit type declaration, its type is
    inferred from the first expression of the expression list, if the enumeration is not
    empty; otherwise, list<any> will be used as its type.

     0.2  Examples

       1  list1 = { 1, 2, 3 }    # list<int>
       2  list2 = { 1.0, 2, 3 }  # list<float>
       3  list3 = { 1 : 5 }      # list<int>
       4  list4 = list{ 1 : 2 : 5 }  # list<int>

    [STRUCTURE]

    dao.type.list--| dao.type.list: List Container Type (3.0 KB)
                   |--method--|