HomeManualTopicsTypesSymbols

std::map_or_error

applies a function to all items of a collection

Parameters

None

Results

None

Description

The function results are collected in a collection of the same type as the original collection.

If any item ist mapped to an error object than the result ist not a collection but the first (left-to-right-order) error object created.

The function applications might be executed in parallel!

See also

std::reduce computes a kind of sum from the 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::generic_list applies a function to all elements of the list