Skip to content

Instantly share code, notes, and snippets.

@jjuliano
Created June 2, 2019 22:02
Show Gist options
  • Save jjuliano/64cadcc657478c8e5a6303fcbcb474e7 to your computer and use it in GitHub Desktop.
Save jjuliano/64cadcc657478c8e5a6303fcbcb474e7 to your computer and use it in GitHub Desktop.
fruits = ["Apple", "Mango", "Orange", "Banana"]
fruits.any? { |word| word.length < 4 } # false
fruits.any? { |word| word.length > 5 } # true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment