Skip to content

Instantly share code, notes, and snippets.

@s4cha
Last active November 11, 2015 16:14
Show Gist options
  • Save s4cha/b716dcfbc39d80b68516 to your computer and use it in GitHub Desktop.
Save s4cha/b716dcfbc39d80b68516 to your computer and use it in GitHub Desktop.
infix operator <== {}
func <== <T:JSONParsable>(inout left:T, right: AnyObject?) {
if let r: AnyObject = right {
left = T.self(json:r)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment