Conditional comprehension in Julia
<p>In Python, there is the option to provide a condition for whether or not to include a specific item in a comprehension.</p>

<pre><code>[x**2 for x in range(10) if x &gt; 5]
# [36, 49, 64, 81]
</code></pre>

<p>It is possible to conditionally use function, but I have not yet found a way to entirely exclude values, other than <code>filter!</code>ing them outside of the comprehension.</p>

<pre><code>l = collect(0:9)
filter!(x -&gt; x &gt; 5, l)
l = [x^2 for x in l]  # alternatively, map!(x -&gt; x^2, l)
# [36, 49, 64, 81]
</code></pre>

<p>Is this possible in Julia? </p>