Or if you want to create an array with elements already in it (this works both for array and collections) you can also do
~~~~~~~~~~
{ anElement } "dynamic array syntax, Pharo-only"
~~~~~~~~~~
or
~~~~~~~~
#('element') "static array, works only for scalars"
~~~~~~~~
or
~~~~~~~~~~~~~~~~
Array with: anElement "constructor method, works also with more elements... Array class>>with:with:with:..."
~~~~~~~~~~~~~~~~
or
~~~~~~~~~~~~~~~~~~~~~~~~~
OrderedCollection with: anElement "as above, but creates a collection instead"
~~~~~~~~~~~~~~~~~~~~~~~~~
Peter