<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>無名関数 Anonymous Functionsについて順を追って・・by ScalaByExample2つの整数を引数に取り、その間の数の合計を計算するには再帰にて以下のように書けます。 object Main extends Application { def sumInts(a: Int, b: Int): Int = if (a &gt; b) 0 else a + sumInts(a + 1, b) println(sumInts(1, 3)) // 1+2+3 } 実行結果は以下のようになります。 6 さらに、2つの整数を引数に取り、その間の数の2乗を合計するには同じように以下のように書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20090616%2F1245164296&quot; title=&quot;無名関数とカリー化 - A Memorandum&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-06-16 23:58:16</published>
  <title>無名関数とカリー化</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20090616/1245164296</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
