HomeManualTopicsTypesSymbols

std::reduce

computes a kind of sum from the items of a collection

Parameters

None

Results

None

Description

There is no guarantee in which order the values will be reduced (folded).

So the the reduction function must obey to the law of assosiativity!

See also

std::map applies a function to all items of a collection
std::map_reduce combines a map and a reduce operation into a single operation
std::filter returns a collection containing all the items that fullfill the filter-condition

Implemented by

std_types::binary_table computes a kind of sum from the values stored in the table
std_types::generic_list computes a kind of sum from the values stored in the list
std_types::hash_table computes a kind of sum from the values stored in the table
std_types::key_order_set reduces a set into a single value
std_types::key_order_table computes a kind of sum from the values stored in the table
std_types::value_range computes a kind of sum from the values specified by the value_range