MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / transform_reduce

Function transform_reduce

include/fplus/transform.hpp:569–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567// commutative monoid.
568template <typename UnaryF, typename BinaryF, typename Container, typename Acc>
569auto transform_reduce(UnaryF unary_f,
570 BinaryF binary_f,
571 const Acc& init,
572 const Container& xs)
573{
574 return reduce(binary_f, init, transform(unary_f, xs));
575}
576
577// API search type: transform_reduce_1 : ((a -> b), ((b, b) -> b), [a]) -> b
578// fwd bind count: 2

Callers 1

transform_test.cppFile · 0.50

Calls 2

reduceFunction · 0.70
transformFunction · 0.70

Tested by

no test coverage detected