How do I append to a CartesianIndex? Example:
index = CartesianIndex(3,3)
append!(index, 1)
# Desired output -> CartesianIndex(3, 3, 1)
I can do this in a roundabout way converting the index to a tuple, adding the 1, and then converting back. However, is there a better way?