From: Robert Klemme Date: 2010-12-27T19:42:00+09:00 Subject: Re: array index inside map function On Sun, Dec 26, 2010 at 10:13 AM, Siddharth Venkatesan wrote: > All of the three solution taught me something. I think i'll go with > .map.with_index. That looks concise. Frankly, I would do something different: input = "101010,234,876" # ... junk, a, b, *remainder = input.split ',' get_something a get_something b Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/