code: public static <K, V> Map<K, V> collectEntries(Iterable<?> self) {
          return collectEntries(self.iterator());
      }
docs: A variant of collectEntries for Iterable objects using the identity closure as the transform.
  The source Iterable should contain a list of <code>[key, value]</code> tuples or <code>Map.Entry</code> objects.
  <pre class="groovyTestCase">
  def nums = [1, 10, 100, 1000]
  def tuples = nums.collect{ [it, it.toString().size()] }
  assert tuples == [[1, 1], [10, 2], [100, 3], [1000, 4]]
  def map = tuples.collectEntries()
  assert map == [1:1, 10:2, 100:3, 1000:4]
  </pre>
  
  @param self an Iterable
  @return a Map of the transformed entries
  @see #collectEntries(Iterator)
  @since 1.8.7