Skip to content

Instantly share code, notes, and snippets.

@fabiogaluppo
Created December 7, 2015 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiogaluppo/2bd1badab7fb81b37cbc to your computer and use it in GitHub Desktop.
Save fabiogaluppo/2bd1badab7fb81b37cbc to your computer and use it in GitHub Desktop.
std::cout << (std::accumulate(std::begin(xs), std::end(xs), 0.0) / xs.size()) << "\n"; //5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment