<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>steavevaivai</author_name>
  <author_url>https://blog.hatena.ne.jp/steavevaivai/</author_url>
  <blog_title>teruuuのブログ</blog_title>
  <blog_url>https://steavevaivai.hatenablog.com/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>Scalaで新しい制御構造を自作する Scalaは関数型言語にあるため関数が第一級のオブジェクトとなります。そのためJavaなどのオブジェクト指向言語と比べてどんな違いがあるかというと、関数を引数にして別の関数を呼び出すことができます。俗に言う高階関数というやつです。 試しに用意した関数を引数として受け取るサンプルは以下のようになります。 def listFunc(lines: List[String])(op:String =&gt; Boolean) = { for { line &lt;- lines if op(line) } yield line + &quot;\n&quot; } (op:String =&gt; B…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsteavevaivai.hatenablog.com%2Fentry%2F2017%2F03%2F05%2F203230&quot; title=&quot;Scalaで新しく制御構造を作成する - teruuuのブログ&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>2017-03-05 20:32:30</published>
  <title>Scalaで新しく制御構造を作成する</title>
  <type>rich</type>
  <url>https://steavevaivai.hatenablog.com/entry/2017/03/05/203230</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
