Programming, Functional Programming, Scala, Tutorial, Venkat Subramaniam.
= new ArrayBuffer[StockPrice] ​ for(stockPrice <- stockPrices) { ​ if(isNotOver500(stockPrice)) stockPricesLessThan500 += stockPrice ​ } ​ ​ var highestPricedStock = StockPrice("", 0.0) ​ ​ for(stockPrice <- stockPricesLessThan500) { ​ highestPricedStock = ​ pickHighPriced(highestPricedStock,