Yes, I tried that before I posted here. Same result.

On Monday, December 7, 2015 at 3:57:37 PM UTC-5, Sisyphuss wrote:
>
> Have you tried doing it in a function?
>
>
> On Saturday, December 5, 2015 at 2:16:12 AM UTC+1, Chris wrote:
>>
>> I am confused about the following:
>>
>> julia> a = [[1,1] for i = 1:5]
>> 5-element Array{Array{Int64,1},1}:
>>  [1,1]
>>  [1,1]
>>  [1,1]
>>  [1,1]
>>  [1,1]
>>
>> julia> a + 1
>> 5-element Array{Any,1}:
>>  [2,2]
>>  [2,2]
>>  [2,2]
>>  [2,2]
>>  [2,2]
>>
>> Specifically, why does the type change from Array{Array{Int64,1},1} to 
>> Array{Any,1}, and what can I do to keep it as Array{Array{Int64,1},1}?
>>
>> Thanks,
>> Chris
>>
>

Reply via email to