Advertisement

Folds

  • Stefania Loredana Nita
  • Marius Mihailescu
Chapter

Abstract

An important element in functional programming is the fold (also known as reduce). A fold represents a set of higher-order functions that operate on recursive data structures and take a combining operation as one of the parameters, recombining the results of recursive operations in order to build a return value. In this chapter, you will learn to use fold functions.

Copyright information

© Stefania Loredana Nita and Marius Mihailescu 2019

Authors and Affiliations

  • Stefania Loredana Nita
    • 1
  • Marius Mihailescu
    • 1
  1. 1.BucharestRomania

Personalised recommendations