Skip to content

Instantly share code, notes, and snippets.

@kkrico
Created February 6, 2019 16:22
Show Gist options
  • Save kkrico/c1dc35e974d5a0bf11299d0a53e5d33f to your computer and use it in GitHub Desktop.
Save kkrico/c1dc35e974d5a0bf11299d0a53e5d33f to your computer and use it in GitHub Desktop.
new[] { 0, 1, 2, 3, 4, 5 }.ToList().Any(numero => numero > 5); // Algum maior que 5 ? false
new[] { 0, 1, 2, 3, 4, 5 }.ToList().All(numero => numero != 6); // Todos são diferente de 6 ? true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment