<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>OCaml</anon>
  </categories>
  <description>前回に続いて、ローカルとモジュールレベルでの関数定義がどうlambda IRにコンパイルされるかを見ていく。 ローカル関数 まずはこんな感じの簡単な関数： let () = let f x = x + 1 in print_int @@ f 5 ocamlopt -c -dlambda localfunc.mlなどとすると： (seq (let (*match*/84 = (apply (field 43 (global Stdlib!)) (let (x/85 =[int] 5) (+ x/85 1)))) 0a) 0a) 見てのとおり、関数定義が消え、呼び出しがletに変換される、というイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2021%2F05%2F09%2F002156&quot; title=&quot;OCamlのlambda IRをいじる（関数） - Arantium Maestum&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>2021-05-09 00:21:56</published>
  <title>OCamlのlambda IRをいじる（関数）</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2021/05/09/002156</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
