List

#import Builtin.List;

Contains the list data type

Structs


list

A dynamically allocated list structure

Methods:

list.size()

size :: uint32()

Returns the number of elements in the list

Returns:

An integer representing the number of elements in the list

list.append(x)

append :: T(val : T)

Append an element to the end of the list like:

list.append(element)
Returns: The element that was just added