<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minazoko</author_name>
  <author_url>https://blog.hatena.ne.jp/minazoko/</author_url>
  <blog_title>水底で思うこと</blog_title>
  <blog_url>https://minazoko.hatenadiary.org/</blog_url>
  <categories>
    <anon>F#</anon>
  </categories>
  <description>関数定義の時に型を明示しなくても推論で型を決めてくれるけど、明示したいこともある。 例えば、** 演算子は float 型専用なので他の型では使えない。 let pow x y = x ** y pow &quot;2&quot; &quot;10&quot; //=&gt; error FS0001: This expression was expected to have type float but here has type string そこで型註釈が必要なのだが。 let pow (x:string) (y:string) = (float x) ** (float y) |&gt; string pow &quot;2&quot; &quot;10&quot; //=&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminazoko.hatenadiary.org%2Fentry%2F20111113%2F1321183318&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>2011-11-13 20:21:58</published>
  <title>関数の型註釈</title>
  <type>rich</type>
  <url>https://minazoko.hatenadiary.org/entry/20111113/1321183318</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
