great post, didn’t know that a switch statement can be returned in a higher order function, i…
Cristian Ramirez

Hi Christian, i did notice a small bug in the example code. I updated it. Using a higher order function indeed is possible, i use it every day.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.