Skip to content

Instantly share code, notes, and snippets.

@ilpropheta
Last active February 19, 2016 01:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilpropheta/d922663da79ea4b01817 to your computer and use it in GitHub Desktop.
Save ilpropheta/d922663da79ea4b01817 to your computer and use it in GitHub Desktop.
int sum = accumulate(view::ints(1)
| view::remove_if([](int i){return i % 2 == 1;})
| view::transform([](int i){return i*i;})
| view::take(10), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment