Last active
September 3, 2015 07:01
-
-
Save Kametrixom/4e62d83d665e832595b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I really like this one | |
func doIt(inout s: D) { | |
if case self = isUniquelyReferenced(&s), | |
self.`self` = true where self { | |
self.`self` = { [unowned x = [self, 7] as Self] n in | |
print(x + n) | |
} as () -> () | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Semicolons for clarity.