Saving sufficient information about array to construct a similar one later

I think this is solved? Close over:

T = typeof(x)
ax = axes(x)

and run

similar(T, ax)

.

2 Likes