Abstract
The last chapter covered some pieces of functional programming that can be hard to wrap your head around, but this chapter will be much simpler. We will look at three general methods used in functional programming instead of loops and instead of explicitly writing recursive functions. They are really three different patterns for computing on sequences, and they come in different flavors with different functions, but just these three let you do almost anything you would otherwise do with loops.
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
© 2023 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Mailund, T. (2023). Filter, Map, and Reduce. In: Functional Programming in R 4. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-9487-1_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-9487-1_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-9486-4
Online ISBN: 978-1-4842-9487-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books