I don't get why the combination of every?
and identity
is giving different results in the following two examples. It seems that it gives the expected answer upon calling it on true
false
collections, but not with the numbers and strings:
(every? identity [1 2 3 4])
=> true
(every? identity [true true false])
=> false