I know I can do this in Ruby:
['a', 'b'].map do |s| s.to_sym end
and get this:
[:a, :b]
I'm looking for a more concise way to do it, without using a block. Unfortunately, this doesn't work:
['a', 'b'].map #to_sym
Can I do better than with the initial code?