Skip to content

Instantly share code, notes, and snippets.

@c650
Last active August 10, 2020 16:34
Show Gist options
  • Save c650/07b101dedfd72e1252f43189492434a1 to your computer and use it in GitHub Desktop.
Save c650/07b101dedfd72e1252f43189492434a1 to your computer and use it in GitHub Desktop.
itertools::base_iter<int, std::vector<int>::iterator>(a.begin(), a.end())
.map<int>([](int a) { return 3 * a; })
.reduce<int>(0, [](int& acc, int x) { return acc + x; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment