Skip to content

Instantly share code, notes, and snippets.

@andrevidela
Last active April 14, 2017 23:31
Show Gist options
  • Save andrevidela/96913391787a9fa780332f9805e73921 to your computer and use it in GitHub Desktop.
Save andrevidela/96913391787a9fa780332f9805e73921 to your computer and use it in GitHub Desktop.
prefix operator ==
prefix func == <T: Equatable>(rhs: T) -> (T) -> Bool {
return { lhs in lhs == rhs }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment