Programming, Functional Programming, Scala, Tutorial, Venkat Subramaniam.
stock that is valued the highest among them, again mutating the highestPricedStock variable as we navigate the collection using the external iterator. We can improve on this code further, use multiple collections if we desire, wrap the code into separate functions, and put them into a class if we