title: check if all elements of an array have the same value in Swift
body: <p>Is there a function in Swift that checks whether all elements of an array have the same value? In my case, it's an array of type <code>Int</code>. I know I can iterate over it using a simple for loop I was just wondering if there is something that is built in and quicker.</p>