{"type":"rich","author_url":"https://blog.hatena.ne.jp/toyship/","blog_title":"Toyship.org","image_url":null,"blog_url":"https://www.toyship.org/","url":"https://www.toyship.org/archives/2229","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.toyship.org%2Farchives%2F2229\" title=\"if let \u306e\u5909\u6570\u540d - Toyship.org\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","title":"if let \u306e\u5909\u6570\u540d","categories":["Swift"],"width":"100%","author_name":"toyship","provider_name":"Hatena Blog","description":"Swift\u3067Optional\u5024\u3092unwrap\u3059\u308b\u3068\u304d\u306b\u4e00\u756a\u4f7f\u3046 if let \u69cb\u6587\u3002 \u305d\u306e\u3068\u304d\u306e\u5909\u6570\u540d\u306e\u6271\u3044\u306b\u3064\u3044\u3066\u307f\u306a\u3055\u3093\u306f\u3069\u3046\u3057\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002 if let Swift\u3067\u5c0e\u5165\u3055\u308c\u305fOptional\u3001\u3053\u306eOptional\u5909\u6570\u3092Optional\u3067\u306f\u306a\u3044\u5909\u6570\u306b\u3059\u308b unwrap \u51e6\u7406\u3068\u3057\u3066\u4e00\u822c\u7684\u306a\u306e\u304c if let \u69cb\u6587\u3067\u3059\u3002 \u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001a\u306fInt?\u578b\u306a\u306e\u3067Int\u307e\u305f\u306fnil\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5b9f\u969b\u306b\u3053\u306e\u306a\u304b\u306e\u5024\u3092\u5224\u5b9a\u3059\u308b\u6642\u306b\u306f\u3001if let\u69cb\u6587\u3067unwrap\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 let a : Int? // (change a value) if let b = a { print\u2026","published":"2015-11-16 16:08:18","version":"1.0"}