Abstract
When representing sets of objects, a common requirement is to want to reduce that set down to a single object by applying a function. This object represents the final result of applying the given function to the first two elements, then taking the result of that application and applying it to the next on the sequence and so on until all elements are processed.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Hunt, J. (2013). Foldable. In: Scala Design Patterns. Springer, Cham. https://doi.org/10.1007/978-3-319-02192-8_40
Download citation
DOI: https://doi.org/10.1007/978-3-319-02192-8_40
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-02191-1
Online ISBN: 978-3-319-02192-8
eBook Packages: Computer ScienceComputer Science (R0)