Skip to content

Instantly share code, notes, and snippets.

@cgoldsby
Last active May 11, 2016 22:27
Show Gist options
  • Save cgoldsby/39ff15b6383fb4938c5b90340bda804e to your computer and use it in GitHub Desktop.
Save cgoldsby/39ff15b6383fb4938c5b90340bda804e to your computer and use it in GitHub Desktop.
func ==<T: CollectionType where T.Generator.Element: Equatable>(lhs: T, rhs: T) -> Bool {
return lhs.count == rhs.count && !(zip(lhs, rhs).contains { $0.0 != $0.1 })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment