Skip to content

Instantly share code, notes, and snippets.

@nirname nirname/boolean.rb
Last active Dec 12, 2015

Embed
What would you like to do?
Condition with array of predicated
[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
You can’t perform that action at this time.