A tuple is a collection of objects of any kind. It is immutable and supports destructuring.

Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
kind = "Tuple"
Active cells (details)
<=>(other)

Compares this object against the argument. The comparison is only based on the elements inside the tuple, which are in turn compared using <=>.

==(other)

returns true if the left hand side tuple is equal to the right hand side tuple.

arity()

Returns the arity of this tuple

asList()

Returns the a list representation of this tuple

asTuple()

nil

method(
  self)
createFrom(args)

Returns a tuple, assuming the arguments are the right length for it

method(args, 
  Tuple)
inspect()

Returns a text inspection of the object

notice()

Returns a brief text inspection of the object

private:accessor(index)

returns a new method that can be used to access an element of a tuple based on the index

private:initializeWith(+values)

will modify the tuple, initializing it to contain the specified arguments