what do you know,
a,b,c = [a,b,c].map! { |x| x = do_something(x) }
actually works

I tried:
[a,b,c] = [a,b,c].map! { |x| x = do_something(x) }
but it returned error

There's so many little stuff you gotta know, I wasted whole 2 hours on
this "problem" :(

I thought since I used explicit method map! that it will alter value of
each separate variable that's member of that array, but apparently it 
doesn't

a = 5
[a].map! {|x| x*2 }
#=> [10]

puts a
#=> 5

-- 
Posted via http://www.ruby-forum.com/.