From: Harry Ohlsen Date: 2003-12-29T09:49:41+09:00 Subject: Re: An addition to Array (or Enumerable)? Tim Hunter wrote: > irb(main):001:0> x = ['A','B','C','D'] => ["A", "B", "C", "D"] > irb(main):002:0> y = x[0],x[1] > => ["A", "B"] > irb(main):003:0> p y > ["A", "B"] Sure, that would work. Of course, it doesn't look so neat when the name of the array is more than one character, and the list of indices is longer. It feels just a little repetitious (again, not for a couple of indices). It could also be messy if the set of indices you wanted was in a variable, rather than hard-coded as in the specific case I gave as an example. At this point, it's an academic exercise. As I said in my original post, in my real-world case, I really should have just used File#size to get what I wanted, but it's so much harder to code after a couple of bottles of Christmas cheer :-). H.