#higher-order-functions

[ follow ]
Scala
fromMedium
2 months ago

Beyond the For-Loop: Mastering map, filter, and flatMap

Scala's map, filter, and flatMap replace imperative loops and mutable accumulation, allowing expression of business rules without focusing on iteration mechanics or state mutation.
fromMedium
10 months ago

Higher order functions in Scala. Part I: Functions as parameters

A higher order function can take another function as a parameter and may return a function, which simplifies certain programming tasks in Scala.
Scala
[ Load more ]