Is there any straightforward way to define this function? :

onedimless{T}(A::AbstractArray{T,2})

I would like it to return almost the same concrete type as typeof(A), but 
with an AbstractArray dimension type parameter of 1 instead of 2. E.g., 
onedimless(zeros(3,3)) 
== Array{Float64,1}.

Thanks,
Josh
​

Reply via email to