CartesianIndex and linear index

proposal

#1

In light of the CartesianIndex type, has anyone considered a LinearIndex type? Could be cool to convert between the two. They would need to contain a reference to the size of the container they index into. We could have methods for changing/reshaping the container’s size. I see some methods that specialize on CartesianIndex popping up, but we could have them specialize on an abstract Index type… Since they are indices, we could change their type to an UInt…?

Anyways, just rambling…


#2

After reading this post and some posts here on Discourse, I realized a few things.