Skip to content

Instantly share code, notes, and snippets.

@mikeash
Created January 20, 2018 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeash/4fbdf5ace8d9395ac86e79e327be71e9 to your computer and use it in GitHub Desktop.
Save mikeash/4fbdf5ace8d9395ac86e79e327be71e9 to your computer and use it in GitHub Desktop.
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