Created
January 20, 2018 02:46
-
-
Save mikeash/4fbdf5ace8d9395ac86e79e327be71e9 to your computer and use it in GitHub Desktop.
Revisions
-
mikeash created this gist
Jan 20, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ 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) // [:]