Answers for "flip a array rust"

0

rust reverse an array

let m1: [i32; 5] = [1, 2, 3, 4, 5];
let mut m2 = m1;
m2.reverse();
Posted by: Guest on March-09-2021

Browse Popular Code Answers by Language