Slate Living Tutorial

to those about to rock...

Collections

Slate has many collection types built-in, check out the reference manual for a full list

Arrays

Standard arrays in Slate are fixed-length, and can be created and modified like so:

"Assume the numbers slot has already been defined"
numbers: (Array new &capacity: 10).

"Nil is the default value for all elements in a newly created Array, 
replace the first element with the value 20"
numbers at: 0 put: 20.