Skip to content
Michał edited this page Jan 13, 2023 · 6 revisions

In IterkoczeScript, Lists work similar to C#'s Lists.

see the example

To create a List, use the new List keyword followed by unique identifier. Like this new List L1;


Add

List.Add(element);

Remove

List.Remove(element);

IndexOf

List.IndexOf(element) -> int;

Contains

List.Contains(element) -> bool;

Sort

List.Sort();

Clear

List.Clear();


To get a value from your List, reference your List with the unique identifier followed by a index. Like this L1[0];

Clone this wiki locally