How to use percent notation to make an array of integers in ruby?
<p>In ruby you can use percent notation to easily make an array of strings:</p>

<pre><code>[14] pry(main)&gt; %w(some cats ran far)
=&gt; ["some", "cats", "ran", "far"]
</code></pre>

<p>Using a method found in <a href="https://stackoverflow.com/questions/4319602/using-ruby-how-do-i-convert-all-array-values-to-a-given-type">another post</a> I was able to make an array of strings using percent notation and then converting them into Fixnums later:</p>

<pre><code>[15] pry(main)&gt; %w(1 2 3).map(&amp;:to_i)
=&gt; [1, 2, 3]
</code></pre>

<p>But I'd really like to be able to do something like</p>

<pre><code>%i(1 2 3) #=&gt; [1 2 3]
</code></pre>

<p>Is this possible? Thanks :)</p>