<p dir="auto">typeof(map(x -&gt; x^2, [1,2,3])) = Array{int64,1}</p>
<p dir="auto">typeof([ x^2 | x=[1,2,3]) = Array{Any, 1}</p>
<p dir="auto">It seems odd that the comprehension loses the type information, while map retains it.</p>
<p dir="auto">Then just settle for map returning a type of the map function as the output array type.</p>