kind | = | "Tuple" |
A tuple is a collection of objects of any kind. It is immutable and supports destructuring.
Mimics
Inactive cells
Active cells
- <=>(other)
- ==(other)
- arity()
- asList()
- asTuple()
- createFrom(args)
- inspect()
- notice()
- private:accessor(index)
- private:initializeWith(+values)
Specs
Inactive cells (details)
Active cells (details)
Compares this object against the argument. The comparison is only based on the elements inside the tuple, which are in turn compared using <=>.
Returns a tuple, assuming the arguments are the right length for it
[ show source ]
method(args, Tuple)
returns a new method that can be used to access an element of a tuple based on the index