Podcast
Questions and Answers
What should be done in Step 1?
What should be done in Step 1?
- Create a new vector
- Create an iterator (correct)
- Create a mutable iterator
- Create a mutable vector
What should be done in Step 2?
What should be done in Step 2?
- Assert that the next value is None
- Assert that the next value is Some
- Assert that the next value is Some(&"custard apple" (correct)
- Assert that the next value is Some(&"banana"
What should be done in Step 3?
What should be done in Step 3?
- Assert that the next value is Some(&"avocado"
- Assert that the next value is None
- Assert that the next value is Some(&"peach" (correct)
- Assert that the next value is Some(&"banana"