Can you keep track of indices using a map in python or other higher order functions?
<p>In Javascript, when we perform higher order functions we maintain access to the element, index, and iterable we perform the function on. For example:</p>

<pre><code>[10,20,30].map(function(element, index, array) {
  return elem + 2  
}
</code></pre>

<p>We maintain access to the element, the index, and the array.</p>

<p>In Python is this possible to do with Python's built-in Map, Filter, and Reduce methods? To my knowledge, the callback inside reduce only has access to the current accumulated and the next value. Please let me know how you would maintain access to the index while you are mapping with Python as you would in Javascript. Thanks</p>