title: Mapping an array to consecutive non-nil values of a method?
body: <p>So, I have <code>x</code> variable names I want to assign to <code>x</code> consecutive non-<code>nil</code> values from a method… how can I do that?</p>
  
  <p>For example, I want to map <code>%w[alpha beta gamma]</code> to the three consecutive non-<code>nil</code> values of the function <code>get(x)</code> beginning with 0.</p>
  
  <p>So, say the values of <code>get(x)</code> are <code>get(0)=1</code>, <code>get(1)=54</code>, <code>get(2)=nil</code>, <code>get(3)=6</code>. I'd want <code>alpha = 1</code>, <code>beta = 54</code>, and <code>gamma = 6</code>.</p>
  
  <p>How can I do this?</p>