julia> using ComponentArrays, OffsetArrays
julia> ca = ComponentArray(a=1, b=2, c=[3, 4], d=(a=[5, 6, 7], b=8));
julia> reshape(collect(ca), axes(ca))
8-element OffsetArray(::Vector{Int64}, 1:8) with eltype Int64 with indices 1:8:
1
2
3
4
5
6
7
8
julia> @which reshape(collect(ca), axes(ca))
reshape(A::AbstractArray, inds::Tuple{Union{Colon, Integer, AbstractUnitRange}, Vararg{Union{Colon, Integer, AbstractUnitRange}}}) in OffsetArrays at C:\Users\jdiegelm\.julia\packages\OffsetArrays\I5Pfg\src\OffsetArrays.jl:345