In atom Vectors, exercise 5 and 6 we have to build on exercise 4. The output from exercise 4 is a String, not a Vector, so this cannot be done using our current knowledge of Scala. Your example output does not use the output of exercise 4 (with firehouse!), but uses the original vector with firehouse.
In atom Vectors, exercise 5 and 6 we have to build on exercise 4. The output from exercise 4 is a String, not a Vector, so this cannot be done using our current knowledge of Scala. Your example output does not use the output of exercise 4 (with firehouse!), but uses the original vector with firehouse.