Programming, Functional Programming, Scala, Tutorial, Venkat Subramaniam.
we design with function composition. Rather than mutating state, state is transformed as it flows through the sequence of functions. Let’s construct an example to see what this difference between imperative and functional style looks like in practice. Let’s say we’re given a list of ticker symbols