J
Josselin
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
without converting the range into an array ?
("A".."Z").each do | alpha |
-> puts alpha.index (?) or something like that .... <-
end