<?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>第一級関数 Scala において、関数は第一級関数 first-class function です。第一級関数なので、関数を値の様にして扱うことができます。例えば以下のように関数を f という値として定義できます。 val f:Int=&gt;Int = x=&gt;x*x println(f(3)) 結果は 9 が出力されます。 上記は以下と同じ意味になります。 val f:Function[Int, Int] = x=&gt;x*x println(f.apply(3)) f(3) の呼び出しは実際には Function 型の apply メソッドの呼び出しでしかないのです。 さらに以下に書き換えることがで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20100422%2F1271949484&quot; title=&quot;関数は Function トレイトである - 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>2010-04-22 00:18:04</published>
  <title>関数は Function トレイトである</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20100422/1271949484</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
