Skip to content

Instantly share code, notes, and snippets.

@pi-chan
Created August 26, 2015 13:24
Show Gist options
  • Save pi-chan/05508728d576db5fbca5 to your computer and use it in GitHub Desktop.
Save pi-chan/05508728d576db5fbca5 to your computer and use it in GitHub Desktop.
sample
var d : [String:AnyObject] = ["Hoge":"Fuga", "Foo":"Bar"]
if let s = d["Hoge"] as? String {
println(s)
}
if let s = d["Hog"] as? String {
println(s)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment