Hi --

On Tue, 25 Nov 2003, Robert Klemme wrote:

> module Kernel
>   def Tuple(*a)
>     a = a[0] if a.size == 1 and a[0].kind_of? Enumerable
>     a = a.to_a unless a.kind_of? Array
>     a.extend Comparable
>   end
> end

Or perhaps:

  module Kernel
    def Tuple(*a)
      t = *a
      t.extend(Comparable)
    end
  end

(Disclaimer: I'm not a real tuple theorist, so I'm winging it a bit
here.)


David

-- 
David A. Black
dblack / wobblini.net