```julia function lazyperm(x::AbstractArray{<:Any,N}) where N return PermutedDimsArray(x, ntuple(identity, N)) end ``` With Rewrap.jl, reshapes should keep the PermutedDimsArray wrapper, and permutes should just change the permutation.
With Rewrap.jl, reshapes should keep the PermutedDimsArray wrapper, and permutes should just change the permutation.