Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  list  >  list()
list class : list() fitter

Description

Get a new instance of list class with initial value.

Syntax

new list()

Arguments

None.

Return value

ClassDescription
listA new instance of list class with initial value.

Sample code

list newList = new list();

Notes

The initial value is an empty list.

You can limit the class of elements by using "{}" in the fitter.

For example


list{string} stringList = new list{string}();


The above example limits the elements of the list to the string class.

If do not use the "{}", will be able to have an instance of any class as a element.

Links for reference

None.

Copyright © Rice All rights reserved.