Skip to content

Instantly share code, notes, and snippets.

@michaeleisel
Last active Mar 22, 2019
Embed
What would you like to do?
postfix operator ~
public postfix func ~<T>(lhs: (T, T)) -> [T] {
return [lhs.0, lhs.1]
}
func go() {
(0, 0)~ // '~' is not a postfix unary operator
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment