Enveloping data in Maps in Elixir
<p>I am getting image counts using this method in my Elixir app:</p>

<pre><code>Enum.each(0..23, fn(per_hour) -&gt;
  count = hour(camera_exid, date_unix, per_hour)
end)
</code></pre>

<p>I want to map <code>per_hour</code> and <code>count</code> into a <code>Map</code>, which I can later pass that to a view. Something in the format of:</p>

<pre><code>[%{hour: per_hour, count: count}, %{hour: per_hour, count: count}, ...]
</code></pre>