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 be have one or more of those parameters bound to a specific value to create a new function with one or more fewer variables.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Hunt, J. (2014). Partially Applied Functions and Currying. In: A Beginner's Guide to Scala, Object Orientation and Functional Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-06776-6_24
Download citation
DOI: https://doi.org/10.1007/978-3-319-06776-6_24
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)