Eachslice(ones(3),dims=2)

fails, while eachslice(ones(3,1),dims=2) works well. (Similar for other dimensions and higher order dims).
This is somewhat inconsistent with the fact that ones(3)[:,1] does its job, and it is also inconvenient.

EDIT: sorry, I forgot to add that eachcol(ones(3)) works fine.

it seems that eachcol() takes the liberty of treating a vector as a column of a matrix

julia> @less eachcol(ones(3))
eachcol(A::AbstractVector) = eachcol(reshape(A, size(A, 1), 1))

julia> eachcol(ones(3)).parent
3×1 Matrix{Float64}:
 1.0
 1.0
 1.0