C++ library providing composable transducers for efficient data transformation
C++ library providing transducers
zug$ #include <zug/transducer/map.hpp>
int main() { auto xf = zug::map([](int x) { return x * 2; }); }$ auto xf = zug::map([](int x) { return x * 2; }) | zug::filter([](int x) { return x > 10; });$ std::vector<int> data = {1, 2, 3, 4, 5};
auto result = zug::into(std::vector<int>{}, xf, data);