From: Siddharth Venkatesan Date: 2010-12-26T17:34:43+09:00 Subject: array index inside map function --00248c0ef18c39cc3b04984c17c0 Content-Type: text/plain; charset=ISO-8859-1 Hi all, how can i access the index of the element inside the map argument block? "101010,234,876".split(",").map {|c| get_something(c)} this works. But the problem is i need to apply the get_something on only the second and third element of the array. How can I check the index of the element inside the map block? Note : I'm pretty new to ruby (just a month). So, this might be a pretty obvious question. - siddharth --00248c0ef18c39cc3b04984c17c0--