Skip to content

List ​

class in OpalScript

A mutable collection of at most 1,024 items. Assignment shares identity.

Properties ​

MemberDescription
List.CountRead-only number of items. Access a zero-based item with items[index]. Out-of-range indices report a source-located error.

Methods ​

MemberDescription
List.AddAppend an item (up to 1,024 items).
List.RemoveAtRemove the item at a zero-based index.
List.ClearRemove all items.
List.ContainsTest value equality or reference identity.

See also ​