Subject: range index
From: Josselin <josselin wanadoo.fr>
Date: Thu, 28 Dec 2006 22:55:09 +0900
is there any dry way to get the index of an element in a range
without converting the range into an array ?
("A".."Z").each do | alpha |
-> puts alpha.index (?) or something like that .... <-
end