Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created March 2, 2014 15:53
Show Gist options
  • Save trikitrok/504c0afedfa0d65bef32 to your computer and use it in GitHub Desktop.
Save trikitrok/504c0afedfa0d65bef32 to your computer and use it in GitHub Desktop.
std::vector<int> NumbersValidator::getNegatives(const std::vector<int> & numbers) const {
return VectorUtils::filter(numbers, [](int number) { return number < 0; });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment