Introduction: Functions are first-class citizens in Scala: we can use them as parameters or return them as the result of some computation. Higher-order functions are functions that accept other functions as parameters, therefore return functions, or both as a value. Their use allows us to create powerful abstractions that reduce duplication and increase the reusability of your […]

Read more of this post