<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>SML</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その640。SMLで階乗を書いてみた。 StandardMLは学部の授業で習ったけれども、一切記憶に残っていない。 さすがにそれはまずい気がするので、当時の教科書(プログラミング言語StandardML入門)をひっぱりだして、階乗のコードを何個か書いてみた。 書いてるうちに昔の記憶がよみがえってきたー、ってこともなかったです。 ソースコード ふつうの。 fun fact_1 n = if n = 0 then 1 else n * fact_1 (n-1) パターンマッチ。 fun fact_2 0 = 1 | fact_2 n = n * fact_2 (n-1) ローカル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090815%2Fsml&quot; title=&quot;SMLで階乗 - みずぴー日記&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>2009-08-15 00:00:00</published>
  <title>SMLで階乗</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20090815/sml</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
