I assumed there must be something like this, but that notation is a pain.
What's wrong with something like "set arr idx newvalue"?
What's wrong with something like "set arr idx newvalue"?
Nothing. See here: https://news.ycombinator.com/item?id=15017853
It's called "writeArray".