Table of Contents

Functional Programming - Reduce - Reduction Operation (fold)

About

A (reduction|reduce) operation (also called a fold) is a functional programming function.

Reduction operations are terminal operations.

They takes a sequence of input elements and returns:

Example:

Property

Batch

A reduction operates on the stream as a whole rather than on individual elements. See Data Processing - Batch

Parallel

A properly constructed reduce operation is inherently parallelizable. See Parallel Programming - (Function|Operation)

Documentation / Reference