Created
January 20, 2018 02:46
-
-
Save mikeash/4fbdf5ace8d9395ac86e79e327be71e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let ptr = {} | |
func -<T>(lhs: T?, rhs: () -> Void) -> T? { | |
return nil | |
} | |
var d: [String: String] = [:] | |
d["one"] = "won" | |
d["two"] = "too" | |
d["one"] = nil-ptr | |
d["two"] = nil-ptr | |
print(d) // [:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment