1 // [index](main.html) | previous | [next](part01.html)
6 // As a starter, we want to write a function that computes the minimum of a list.
7 // First, we need to get a list. For now, let's just hard-code some sample list.
8 // Later, we will ask the user to input a list.
10 // Observe how in Rust, the function type comes *after* the arguments (which, in
11 // this case, the function does not have). `Vec<i32>` is the type of a growable list
12 // of (signed, 32-bit) integers.
14 pub fn read_vec() -> Vec<i32> {