Skip to content

Instantly share code, notes, and snippets.

@ConorBrady
Created April 26, 2017 10:30
Show Gist options
  • Save ConorBrady/5cb884ed18922ff6253ad34740d786d6 to your computer and use it in GitHub Desktop.
Save ConorBrady/5cb884ed18922ff6253ad34740d786d6 to your computer and use it in GitHub Desktop.
infix operator <==
@discardableResult
public func <== <T>(x: T, f: (T) -> ()) -> T {
f(x)
return x
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment