<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtoyoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/mtoyoshi/</author_url>
  <blog_title>mtoyoshi開発メモ</blog_title>
  <blog_url>https://mtoyoshi.hateblo.jp/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>関数定義 通常はメソッドとして宣言される。 def 関数名[型パラメータ](引数名:引数の型名,……):返り値 = 関数本体 たとえば、 def sum(x:Int, y:Int) = x + y 関数リテラル 変数に代入可能。メソッドの引数としても。 (変数名:型名,……) =&gt; 関数本体 たとえば、 val sum = (x:Int, y:Int) =&gt; x + y 高階関数 引数に関数をとる関数。 第一引数がIntで、第二引数は関数。第一引数の数字をなんらか加工して返す関数をとる。 def exe(x:Int, func:(Int)=&gt;Int) = { println(x + &quot; -&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F2013%2F05%2F01%2F225406&quot; title=&quot;関数について - mtoyoshi開発メモ&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>2013-05-01 22:54:06</published>
  <title>関数について</title>
  <type>rich</type>
  <url>https://mtoyoshi.hateblo.jp/entry/2013/05/01/225406</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
