I’m trying to concatenate two vectors. The obvious way to do that is iterating over the second vector and use
push on the first one to add each element of the second.
There is also an
append function that concat the second vector in the first one, but for unknown reason (to me) it empties the second one.
What’s the idiomatic way to do that in Rust ?
Many thanks !