title: Lazy list comprehension in Elixir?
body: <p>Is there a way to make list comprehension lazy in Elixir? If not, is there a way to turn this into a <code>Stream</code>?</p>
  
  <p><code>my_list = for i &lt;- (1..1000000), j &lt;- (1..1000000), do: {i, j}</code></p>
  
  <p>This code snippet blows my program by taking too much memory. </p>
  
  <p>I want to apply a filter, map and reduce on my_list.</p>