zug

C++ library providing composable transducers for efficient data transformation

brewmacoslinux
Try with needOr install directly
Source

About

C++ library providing transducers

Commands

zug

Examples

Include zug in a C++ project and use transducers to transform sequences$ #include <zug/transducer/map.hpp> int main() { auto xf = zug::map([](int x) { return x * 2; }); }
Compose multiple transducers for chained transformations$ auto xf = zug::map([](int x) { return x * 2; }) | zug::filter([](int x) { return x > 10; });
Apply transducers to reduce operations on collections$ std::vector<int> data = {1, 2, 3, 4, 5}; auto result = zug::into(std::vector<int>{}, xf, data);