functional programming in scala reddit