<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>概要 通常Scalaでdefを用いて関数を定義するにはクラスやオブジェクトのメソッドとして 定義しなければならない。だがREPLにおいては、その必要はなくそのままdefで定義できる。 コード scala&gt; def add(x:Int, y:Int):Int = x + y add: (x: Int, y: Int)Int scala&gt; add(4,5) res2: Int = 9 scala&gt; def print():Unit = println(&quot;hello&quot;) print: ()Unit scala&gt; print hello scala&gt; def print:Unit = println(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2014%2F02%2F04%2FScala%25E3%2581%25AE%25E9%2596%25A2%25E6%2595%25B0%25E5%25AE%259A%25E7%25BE%25A9&quot; title=&quot;Scalaの関数定義 - by shigemk2&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>http://ecx.images-amazon.com/images/I/315Gw-Mz1PL._AA180_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-04 21:52:20</published>
  <title>Scalaの関数定義</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/2014/02/04/Scala%E3%81%AE%E9%96%A2%E6%95%B0%E5%AE%9A%E7%BE%A9</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
