<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bleis-tift</author_name>
  <author_url>https://blog.hatena.ne.jp/bleis-tift/</author_url>
  <blog_title>ぐるぐる～</blog_title>
  <blog_url>https://bleis-tift.hatenablog.com/</blog_url>
  <categories>
    <anon>F#</anon>
  </categories>
  <description>なんかTLで偶然そんな話題があったので。 コードはF#です。 まずrefについて 値制限の話題に行く前に、refについて説明します。 refは、「変更可能な値」を実現するために使える型で、大体こんな感じに実装されています。 type 'a ref = { mutable contents: 'a } (* refの生成 *) let ref x = { contents = x } (* refが格納している値を参照 *) let (!) x = x.contents (* refが格納している値に再代入 *) let (:=) x y = x.contents &lt;- y これによって、以下の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2Fvalue-restriction&quot; title=&quot;値制限 - ぐるぐる～&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-03-20 20:11:00</published>
  <title>値制限</title>
  <type>rich</type>
  <url>https://bleis-tift.hatenablog.com/entry/value-restriction</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
