On a sequence , the map operation with a function gives ; the filter with a predicate keeps the with true, in order; the fold from with a two-argument function gives (a left fold; the right fold is ). Sums, counts, maxima, and the building of collections are folds.
Computer Science · Begrippenlijst
Wat is Map operation, filter, fold?
Ook bekend als: map operation · filter · fold