How to forEach in Elixir : <p>How do you forEach in Elixir? In JavaScript (and most languages have an equivalent), I can iterate through the various items in a list and do something with side effects like outputting to the console.</p>

<pre><code>[1,2,3].forEach(function(num) {
    console.log(num);
});

//=&gt; 1
//=&gt; 2
//=&gt; 3
</code></pre>

<p>Is there an equivalent in elixir?</p>
