Reduce Abstraction

Reduce

Syntax

Reduce takes a list, a binary operation, and an identity element for the operation. It returns a value representing the binary operator applied to successive application of the operations to intermediate results.

Reduce

Example

Last updated

Was this helpful?