Arrays
Shoot a ray of arrays
Arrays allow us to group together data of the same type into a single access point which is usually a variable. Arrays are indexable by any value of type Int, this can be a literal, a function call or an expression. Arrays have bounds in SMLL so it it critical to specify the number of elements the array holds when declaring the array type, but no needed when you specify the array. The compiler counts the elements for you and populates the size of you. Indexing the arrays has a different form. Use the
.[]
symbol and pass your value inside the brackets.
Last updated