Skip to content

Instantly share code, notes, and snippets.

@svick
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save svick/9abe0d23bd9216499008 to your computer and use it in GitHub Desktop.

Select an option

Save svick/9abe0d23bd9216499008 to your computer and use it in GitHub Desktop.
Any
any_of(list.begin(), list.end(), [](SomeType x){ return predicate(x); })
list.Any(x => predicate(x))
List.exists (fun x -> predicate x) list
any (\x -> predicate x) list
list.stream().filter(x -> predicate(x)).findAny().isPresent()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment