List
class in OpalScript
A mutable collection of at most 1,024 items. Assignment shares identity.
Properties
| Member | Description |
|---|---|
| List.Count | Read-only number of items. Access a zero-based item with items[index]. Out-of-range indices report a source-located error. |
Methods
| Member | Description |
|---|---|
| List.Add | Append an item (up to 1,024 items). |
| List.RemoveAt | Remove the item at a zero-based index. |
| List.Clear | Remove all items. |
| List.Contains | Test value equality or reference identity. |