-
Notifications
You must be signed in to change notification settings - Fork 0
Lists
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;
List.Add(element);
List.Remove(element);
List.IndexOf(element) -> int;
List.Contains(element) -> bool;
List.Sort();
List.Clear();
To get a value from your List, reference your List with the unique identifier followed by a index. Like this L1[0];