Last active
December 12, 2015 07:39
-
-
Save nirname/4738195 to your computer and use it in GitHub Desktop.
Condition with array of predicated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[true, false].reduce(&:&) | |
[true, false].reduce(&:|) | |
# the same | |
[true, false].any? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment