title: Enumerate or map through a list with index and value in Dart
body: <p>In dart there any equivalent to the common:</p>
  <pre><code>enumerate(List) -&gt; Iterator((index, value) =&gt; f)
  or 
  List.enumerate()  -&gt; Iterator((index, value) =&gt; f)
  or 
  List.map() -&gt; Iterator((index, value) =&gt; f)
  </code></pre>
  <p>It seems that this is the easiest way but it still seems strange that this functionality wouldn't exist.</p>
  <pre><code>Iterable&lt;int&gt;.generate(list.length).forEach( (index) =&gt; {
    newList.add(list[index], index)
  });
  </code></pre>