functionalplus

Functional programming library for C++ with composable utilities.

brewmacoslinux
Try with needOr install directly
Source

About

Functional Programming Library for C++

Examples

write C++ code with functional programming style$ #include <functional-plus/functional-plus.hpp> // Use fplus functions like fplus::map, fplus::filter, fplus::fold
transform and filter collections without loops$ auto result = fplus::filter(is_even, fplus::map(double_value, numbers));
compose multiple functions together$ auto composed = fplus::compose(function_a, function_b, function_c);
work with optional and maybe types safely$ auto value = fplus::bind(maybe_function, optional_input);
reduce a list to a single value with accumulation$ auto sum = fplus::fold(std::plus<int>(), 0, numbers);