Closed
Description
I try to remove the item of vector at a CartesianIndex
, like
julia> deleteat!([1, 2], CartesianIndex(1))
ERROR: iteration is deliberately unsupported for CartesianIndex. Use `I` rather than `I...`, or use `Tuple(I)...`
It seems that a CartesianIndex
is treated as an iterator of indices instead of an index, and there is not a method like deleteat!(a::Vector, ind:: CartesianIndex)
.
Is it possible to add a method deleteat!(a::Vector, ind:: CartesianIndex)
?