next up previous
: add : Primitive Operators : [

]

[ and ] are used to construct an array.
The left bracket [ is an operator that leaves an object called
a mark on the stack. The interpreter puts more objects
until it encounters a right bracket, which creates
an array. So, it is possible to construct an array, for example, in the way
 [  1  2  [ 2 1 roll 3] ] print ==> [1 [2 3]]



Nobuki Takayama 平成17年2月10日