Programming, Functional Programming, Scala, Tutorial, Venkat Subramaniam.
isNotOver500 reduce pickHighPriced print We’re done. That’s it, small enough to fit in a tweet. OK, this conciseness does take some getting used to. Let’s walk through it. tickers map getPrice first transforms the collection of tickers into a collection of StockPrice instances. For each ticker