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 CartesianIndex or something like
a[i,i for i in 1:10] .= something
Or in general using setindex! with an array for syntax?