<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>liephia</author_name>
  <author_url>https://blog.hatena.ne.jp/liephia/</author_url>
  <blog_title>Reproc.pnz</blog_title>
  <blog_url>https://penzant.hatenadiary.com/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>Programming</anon>
  </categories>
  <description>ocamlで二進表現の型定義どうするのってぐぐってもそれらしい解説がついてるのが見つからなかったんだけど、やっぱり考えぬいて（アニメ見ながら3時間くらい考えた）以下の結論に至った。 type bnats = X | Y of bnats | Z of bnats type bnat = A | B of bnats 0 = A 1 = B X 11 = B (Y X) 101011 = B (Y (Y (Z (Y (Z X))))) とりあえず二進表現と型表現の桁の順序は逆になっていて、Aは値としての0、Xは一番上の桁の1、Yは途中の桁の1、Zは途中の桁の0という感じ。Bはbnatsを引き受け…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpenzant.hatenadiary.com%2Fentry%2F2014%2F04%2F19%2F000000&quot; title=&quot;OCamlの二進数表現っぽいもの - Reproc.pnz&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-19 00:00:00</published>
  <title>OCamlの二進数表現っぽいもの</title>
  <type>rich</type>
  <url>https://penzant.hatenadiary.com/entry/2014/04/19/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
