rust notes #
notes from the crab book :)
- array types
let a: [i32; 5] = ...
- array zero init
let a: [0; 5];
.parse()
tries to convert val to type given in definition- snake case for functions
1..=100
is equiv to [1,100]- if statements similar to python
- short if
if condition { 5 } else { 6 };