Higher-Order Functions

  • John HuntEmail author


Functions in Scala are part of the type system. That is, they are part of the system of entities that comprise the types that variables and parameters can reference. Thus just as a parameter can be of type Int, or Boolean, or Person a parameter to a method or a function can be another functions. A function that takes a function as a parameter is referred to as a higher-order function. This chapter discusses higher-order functions and how they can be used and provides some examples taken from the collection classes in Scala.

Copyright information

© Springer International Publishing AG 2018

Authors and Affiliations

  1. 1.Midmarsh Technology LtdBath, WiltshireUK

Personalised recommendations