Download PDF
Rust literals and variables
Rust control flow
Rust macros and functions
Rust arrays and tuples
Rust standard library
Cargo
arrays: like tuples but must be same type let a:[i32,3] = [1,2,3] [3;5] == [3,3,3,3,3] a[0] = 1
tuples
let tup: (i32, f64, u8) = (500, 6.4, 1)
let (x, y, z) = tup tup.0