f(n) = [ i^2 for i = 1:n ]
julia> f(0)
0-element Array{Int64,1}
On Wednesday, 12 October 2016 07:10:37 UTC+1, Jussi Piitulainen wrote:
>
> Does that mean that an empty array comprehension is always Array{Any}?
>
> that array comprehensions are now type-inference-independent. That means
>> that the type of the resulting array only depends on the actual types of
>> values produced, not what the compiler can prove about the expression in
>> advance.
>>
>
>
