Advertisement

Partially Applied Functions and Currying

  • John HuntEmail author
Chapter

Abstract

This chapter looks at two ways in which functions (and in fact methods) in Scala can comprise components of reuse within a software system. These two approaches are partial application of functions and Currying. The two approaches represent variations on a theme. In both cases they allow a function with one or more parameters to have one or more of those parameters bound to a specific value to create a new function with one or more fewer variables.

Copyright information

© Springer International Publishing AG 2018

Authors and Affiliations

  1. 1.Midmarsh Technology LtdBath, WiltshireUK

Personalised recommendations