add some links to external resources
[rust-101.git] / src / part00.rs
1 // [index](main.html) | previous | [next](part01.html)
2
3 // Rust-101, Part 00
4 // =================
5
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.
9 // 
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.
13
14 pub fn read_vec() -> Vec<i32> {
15     vec![0,1,2,3,4]
16 }
17
18
19 pub fn part_main() {
20     
21 }