{"published":"2016-03-17 14:52:59","categories":["F#"],"url":"https://bleis-tift.hatenablog.com/entry/how-to-make-computation-expression","blog_title":"\u3050\u308b\u3050\u308b\uff5e","author_url":"https://blog.hatena.ne.jp/bleis-tift/","image_url":null,"height":"190","version":"1.0","provider_url":"https://hatena.blog","blog_url":"https://bleis-tift.hatenablog.com/","width":"100%","provider_name":"Hatena Blog","author_name":"bleis-tift","title":"Option\u306b\u898b\u308b\u30b3\u30f3\u30d4\u30e5\u30c6\u30fc\u30b7\u30e7\u30f3\u5f0f\u306e\u3064\u304f\u308a\u65b9","description":"\u307e\u305f\u306e\u540d\u3092\u5165\u9580\u30b3\u30f3\u30d4\u30e5\u30c6\u30fc\u30b7\u30e7\u30f3\u5f0f(\u5618 \u3053\u306e\u8a18\u4e8b\u306f\u3001\u300c\u30b3\u30f3\u30d4\u30e5\u30c6\u30fc\u30b7\u30e7\u30f3\u5f0f\u3063\u3066\u3069\u3046\u3084\u3063\u3066\u4f5c\u308c\u3070\u3044\u3044\u306e\uff1f\u300d\u306b\u5bfe\u3059\u308b\u81ea\u5206\u306a\u308a\u306e\u56de\u7b54\u3067\u3059\u3002 match\u306e\u30cd\u30b9\u30c8 option\u3092\u8fd4\u30593\u3064\u306e\u95a2\u6570f, g, h\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002 \u3067\u3001\u3053\u306e\u3088\u3046\u306a\u51e6\u7406\u304c\u3057\u305f\u3044\u3068\u3057\u307e\u3057\u3087\u3046\u3002 let niceFunction (arg1, arg2, arg3) = match f arg1 with | Some x -> match g arg2 with | Some y -> match h arg3 with | Some z -> Some (x, y, z) | None -> None | None -> Non\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2Fhow-to-make-computation-expression\" title=\"Option\u306b\u898b\u308b\u30b3\u30f3\u30d4\u30e5\u30c6\u30fc\u30b7\u30e7\u30f3\u5f0f\u306e\u3064\u304f\u308a\u65b9 - \u3050\u308b\u3050\u308b\uff5e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}