On Thu, 17 Nov 2005, Eric Hodel wrote:

> On Nov 16, 2005, at 2:05 PM, TRANS wrote:
>
>> If I put together a good Tuple class for Ruby could it go into core? I
>> have a pure Ruby version that I find very useful, but it's so basic I
>> don't like making an extra dependecy just for it, and of course a core
>> version would be even tighter.
>> 
>> Just to be clear I mean Tuple as in N-Tuple. Essentially an Array but
>> Multiton and Comparable, with a bit of extra dressing to turn strings
>> of the form '1.2.3', '1-2-3', etc. into Tuples easily.
>
> I thought this is what rcrchive.net was for.
>
> There aren't any tuple projects in the RAA, so it seems that people don't 
> really need tuples in Ruby.

several of my packages have them internally.  they all use arrayfields and
some use multiton.  i think it's a useful idiom - but hard the make generic.

-a
-- 
===============================================================================
| ara [dot] t [dot] howard [at] gmail [dot] com
| all happiness comes from the desire for others to be happy.  all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================