title: How to do multiple arguments to map function where one remains the same
body: <p>Let's say we have a function <code>add</code> as follows</p>
  <pre><code>def add(x, y):
      return x + y
  </code></pre>
  <p>we want to apply map function for an array</p>
  <pre><code>map(add, [1, 2, 3], 2)
  </code></pre>
  <p>The semantics are I want to add 2 to every element of the array. But the <code>map</code> function requires a list in the third argument as well.</p>
  <p><strong>Note:</strong> I am putting the <code>add</code> example for simplicity. My original function is much more complicated. And of course option of setting the default value of <code>y</code> in <code>add</code> function is out of question as it will be changed for every call.</p>