Skip to main content
  • 3597 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to John Hunt .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Hunt, J. (2014). Higher Order Functions. In: A Beginner's Guide to Scala, Object Orientation and Functional Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-06776-6_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-06776-6_23

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-06775-9

  • Online ISBN: 978-3-319-06776-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics