https://github.com/JuliaLang/julia/issues/18524

On Wednesday, September 14, 2016 9:15:45 AM CDT Marius Millea wrote:
> Is this the expected behavior?
> 
> julia> mapslices(x->tuple(x), [1 2; 3 4], 1)
> 1×2 Array{Tuple{Array{Int64,1}},2}:
>  ([2,4],)  ([2,4],)
> 
> julia> mapslices(x->tuple(x...), [1 2; 3 4], 1)
> 1×2 Array{Tuple{Int64,Int64},2}:
>  (1,3)  (2,4)
> 
> 
> The first case certainly came as pretty unexpected to me. Does it have
> something to do with copies vs views into the array?


Reply via email to