Skip to content

Instantly share code, notes, and snippets.

@Qata
Created September 27, 2019 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qata/612717d90f533fcee3ba1f8f1a7bd0f4 to your computer and use it in GitHub Desktop.
Save Qata/612717d90f533fcee3ba1f8f1a7bd0f4 to your computer and use it in GitHub Desktop.
prefix operator ==
public prefix func == <T: Equatable>(value: T) -> (T) -> Bool {
return {
value == $0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment