title: Pass argument in .each(&:) function
body: <p>I've an entity and I want to call each element in the entity with a function and pass an argument with it.</p>
  
  <p>I know I can call the function by using <code>entity.each(&amp;:calculate)</code> but I want to pass argument to the function.</p>
  
  <pre><code>def calculate(x)
    puts "#{x}"
  end
  </code></pre>
  
  <p>I'm trying with <code>entity.each(&amp;:calculate, x)</code></p>