Something like
function recursive_copyto!(a::AbstractArray{T}, b::AbstractArray{T}) where {T}
if T <: AbstractArray
foreach(recursive_copyto!, a, b)
else
copyto!(a, b)
end
a
end
?
Something like
function recursive_copyto!(a::AbstractArray{T}, b::AbstractArray{T}) where {T}
if T <: AbstractArray
foreach(recursive_copyto!, a, b)
else
copyto!(a, b)
end
a
end
?