|
|
|
|
|
by kevincox
1748 days ago
|
|
For sure. The solution has downsides but it does largely solve the problem. It isn't strictly better than go, but it is an important difference. Mostly off-topic but FWIW "mutable reference into an array" is typically very easy in Rust you just accept a &mut [T]. This also nicely enforces that you don't try to append because that would be wrong 99% of the time. |
|
I had specifically worded it as "a couple mutable references into an array". How do I take a small number of references into an array, say two or three?