A high-performance solution to the "are all elements of an iterable equal" problem

I’m kinda confused. So what’s wrong with

?

And yes, map is lazy.