Is there a nicer way to do this?
a = rand(10,10) a[[CartesianIndex(i,i) for i in 1:10]] .= something
I.e. using setindex! without a Car
Car