HomeManualTopicsTypesSymbols

std_types::generic_list/std::map_or_error

applies a function to all elements of the list

Parameters

self
the list which items will be mapped
function
the function to apply to each element of the list

Results

None

Description

A list of the "mapped" items is returned.

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.

Topic

Lists

Implements

std::map_or_error applies a function to all items of a collection

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