control flow, primitive types and vectors

This commit is contained in:
2026-01-13 04:19:05 +00:00
parent 505ab3b606
commit 2cd1c84285
19 changed files with 50 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ fn array_and_vec() -> ([i32; 4], Vec<i32>) {
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`.
// Use the vector macro.
// let v = ???;
let v = vec![10, 20, 30, 40];
(a, v)
}