Programming Challenge:
Write a function (in your favorite language) that, given an array of booleans, will return true only if the booleans are all true or all false.
So:
[true, true, true] is true
[false, false, false] is true
[true, true, false] is false
Bonus points for efficiency or cleverness, though all answers are appreciated.