#higher-order-functions

[ follow ]
Scala
fromMedium
3 days 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
7 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 ]