From: Gavin Sinclair Date: 2003-12-29T09:19:56+09:00 Subject: Re: An addition to Array (or Enumerable)? [Gennady:] >> What I then wanted to do was pull out items 4 and 8 (the size and >> filename) into a new two-element array. I half expected to be able to >> do that via: >> >> data = listing[[4, 8]] > > data = listing.select(4,8) > or for older Ruby > data = listing.indices(4,8) Enumerable#select is an alias for #find_all. #values_at is the 1.8 version of #indices (I miss that method name :). Gavin