From: ts Date: 2002-09-18T23:04:02+09:00 Subject: Re: Picking arbitrary elements from an array >>>>> "J" == James F Hranicky writes: J> foo = [ 0, 2, 4, 6, 8, 10, 12, 14 ] J> p foo[0;6;7] # => returns [ 0, 12, 14 ] Array#indices (deprecated in 1.7.*) pigeon% ruby -e 'a =[ 0, 2, 4, 6, 8, 10, 12, 14 ]; p a.indices(0, 6, 7)' [0, 12, 14] pigeon% pigeon% ./ruby -ve 'a =[ 0, 2, 4, 6, 8, 10, 12, 14 ]; p a.indices(0, 6, 7)' ruby 1.7.3 (2002-09-13) [i686-linux] -e:1: warning: Array#indices is deprecated; use Array#select [0, 12, 14] pigeon% Guy Decoux