Fizz Buzz and Chained Scala Partial Functions

By | November 15, 2015

I was working through some Scala exercises on the following site.

47deg Sala Exercises

I liked the section on partial functions and just for the sake of running through sample exercise of my own I thought I’d apply the Fizz Buzz Test using chained partial functions in Scala.  It’s definitely not the most concise Scala code to tackle this problem but for some reason I thought chained partial functions might be an interesting approach for this problem.

 

Leave a Reply