From: "James F.Hranicky" Date: 2002-09-18T22:54:23+09:00 Subject: Picking arbitrary elements from an array --=.I(L_9s,QH,iU.N Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Anyone like the idea of being able to pick arbitrary elements from an array? foo = [ 0, 2, 4, 6, 8, 10, 12, 14 ] p foo[0;6;7] # => returns [ 0, 12, 14 ] Or is there a way to do this now I'm unaware of ? ---------------------------------------------------------------------- | Jim Hranicky, Senior SysAdmin UF/CISE Department | | E314D CSE Building Phone (352) 392-1499 | | jfh@cise.ufl.edu http://www.cise.ufl.edu/~jfh | ---------------------------------------------------------------------- "Given a choice between a complex, difficult-to-understand, disconcerting explanation and a simplistic, comforting one, many prefer simplistic comfort if it's remotely plausible, especially if it involves blaming someone else for their problems." -- Bob Lewis, _Infoworld_ --=.I(L_9s,QH,iU.N Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (SunOS) iD8DBQE9iIVzqJn1asfI5oQRAuu8AJ9MC1LJ8muONwLdiFjayzU2KjfV6ACeOlwm 91f00oOhLnZc5UxRtH7MwBc= =TJN1 -----END PGP SIGNATURE----- --=.I(L_9s,QH,iU.N--