Make map() return a dictionary
<p>I have the following function:</p>

<pre><code>def heading_positions(self):
    return map(
            lambda h:
                {'{t}.{c}'.format(t=h.table_name,c=h.column_name) : h.position },
                self.heading_set.all()
            )
</code></pre>

<p>It gives me output like this:</p>

<pre><code>[{'customer.customer_number': 0L}, {'customer.name': 2L}, ... ]
</code></pre>

<p>I would prefer just a single dictionary like this:</p>

<pre><code>{'customer.customer_number': 0L, 'customer.name': 2L, ...
</code></pre>

<p>Is there a way to make <code>map</code> (or something similar) return just a single dictionary instead of an array of dictionaries?</p>
