{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2022%2F10%2F09%2F091810\" title=\"\u7c21\u5358\u306a\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304f\uff17\u3000STLC+Bool+Nat+Let+Record+Variant - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u7c21\u5358\u306a\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304f\uff17\u3000STLC+Bool+Nat+Let+Record+Variant","width":"100%","provider_name":"Hatena Blog","image_url":null,"published":"2022-10-09 09:18:10","type":"rich","author_name":"zehnpaard","url":"https://zehnpaard.hatenablog.com/entry/2022/10/09/091810","version":"1.0","author_url":"https://blog.hatena.ne.jp/zehnpaard/","blog_title":"Arantium Maestum","blog_url":"https://zehnpaard.hatenablog.com/","height":"190","description":"\u578b\u30b7\u30b9\u30c6\u30e0\u306b\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u3068\u30b1\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u3092\u8ffd\u52a0\u3059\u308b\u3002 \u3053\u3046\u3044\u3046\u3084\u3064\uff1a type t = Name of string | Id of int let to_str = function Name s -> s | Id n -> string_of_int n \u4ee3\u6570\u7684\u30c7\u30fc\u30bf\u578b\u306b\u304a\u3051\u308b\u76f4\u548c\u578b\u3067\u3042\u308a\u3001\u524d\u56de\u306e\u76f4\u7a4d\u578b\u3068\u5408\u308f\u305b\u308b\u3068\u3050\u3063\u3068\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3063\u307d\u3055\u304c\u51fa\u3066\u304d\u3066\u30c6\u30f3\u30b7\u30e7\u30f3\u304c\u4e0a\u304c\u308b\u3002 gist.github.com \u578b \u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u3092\u8ffd\u52a0\uff1a type ty = ... | TVariant of (string * ty) list \u30d0\u30ea\u30a2\u30f3\u30c8\u306fName of string | I\u2026","categories":["OCaml","\u578b\u7406\u8ad6","\u8a00\u8a9e\u51e6\u7406\u7cfb"]}