Re: [julia-users] unexpected mapslice result on 0.5rc3

2016-09-15 Thread Tim Holy
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...),

[julia-users] unexpected mapslice result on 0.5rc3

2016-09-14 Thread Marius Millea
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