HomeManualTopicsTypesSymbols

std_types::value_range/std::map_reduce

combines a map and a reduce operation into a single operation

Parameters

self
the value-range to work on
map_function
the function to apply to each element of the value_range
reduce_function (default: append)
the function to apply to pairs of values

Results

None

Description

Does not create an intermediate list to hold the "mapped" values.

Implements

std::map_reduce combines a map and a reduce operation into a single operation

See also

std::map applies a function to all items of a collection
std::reduce computes a kind of sum from the items of a collection