I was going through the basics of functional programming, and eventually came accross the concept of higher-order functions. I saw an example in this v