Ruby lets you do
[5,5,5].sum => 15
Is there anything to do boolean arithmetic in an array like
[true, true, true].sum => true [true, false, true].sum => false
[true, true, true].all?
will return true.
[true, false, true].all?
will return false.
Also, if you want to log OR values:
[true, false, true].any?
returns true.