Skip to content
Splizard edited this page Apr 18, 2017 · 5 revisions

i has support for lists of any type.

To make an empty list:
var l = []

Elements can be put inside of the list, all the elements in a list are required to be the same type.

l += "Element"

Lists can be used just like arrays, they can be indexed, modified and looped over.

print(l[0])
l[0] = "Different"
for element in l 
    print(element)
end 

Lists can also be initialised literally.

var fruit = ["Orange", "Apple", "Pear"]
Clone this wiki locally