From: Mark Wilson Date: 2003-02-04T06:56:41+09:00 Subject: Re: What is a tuple? On Monday, February 3, 2003, at 04:35 PM, Bob X wrote: > [snip] > Tuples are immutable lists. > > "Tuples have many uses. For example: (x, y) coordinate pairs, employee > records from a database, etc. Tuples, like strings, are immutable: it > is not possible to assign to the individual items of a tuple (you can > simulate much of the same effect with slicing and concatenation, > though). It is also possible to create tuples which contain mutable > objects, such as lists." > <-- from Python docs Thank you for the prompt response. Could one then implement a tuple in Ruby as follows: class Tuple attr_reader :tuple def initialize(*args) @tuple = *args end end