Vectors in Rust
- Fixed vector of numbers
- Iterate over elements of vector using for-loop
- Mutable vector of numbers, append (push) values
- Mutable empty vector for numbers (push)
- Mutable empty vector for strings
- Mutable empty vector with type definition
- Mutable vector of strings
- Remove the last element using pop, reduce capacity
- Stack and the capacity of a vector
- Extend vectors of numbers (combining two vectors)
- Extend vector of Strings (combining two vectors)
- Append vector of Strings (moving over elements)
- Split string into iterator
- Split string into vector
- Sort vector of numbers
- Sort vector of strings using sorting condition
- Exercise: Median
- Exercise: ROT13
- Solution: Median
- Solution: ROT13
- Convert vector of chars to String
- Vector of tuples
- Vector of structs
- Vector of structs - change value
- Join elements of vector into a string
- Join vector of integers
- Maximum value of a vector
- Longest or shortest string in a vector
- Change vector using map
- Update values in vector of structs using map
- map is lazy
- map is lazy that can cause problems
- filter numbers
- filter numbers iter into
- filter numbers by named function
- filter string
- Two references to the same vector
- Filter vector of structs (cloning)
- Convert vector of structs to vector of references
- Filter vector of structs without copy
- Combine filter and map into filter_map
- Accessing the last element of a vector
- Insert element in vector
- Vector with optional values - None or out of range?
- Vector with optional values
- Vector length and capacity
- References to numbers
- Queue
- Iterate over both index and value of a vector (enumerate)
- Create vector of strings from array of str using from_iter
- Memory allocation of vector of numbers
- Memory allocation of vector of strings
- Exercise: Count words using two vectors
- Solution: Count words using two vectors