<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kmizushima</author_name>
  <author_url>https://blog.hatena.ne.jp/kmizushima/</author_url>
  <blog_title>kmizuの日記</blog_title>
  <blog_url>https://kmizu.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>eta-expansionとは、メソッドを関数に変換する処理です。 たとえば、 def add(x: Int, y: Int): Int = x + y val addFunc = add _ で、add _によって、eta-expansionが行われ、メソッドaddが関数に変換されます。このeta-expansion、メソッドがオーバーロードされていると一見正しく行うことができないように見えます。 object O { def add(x: Double, y: Int): Double = x + y def add(x: Int, y: Double): Double = x + y }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkmizu.hatenablog.com%2Fentry%2F2016%2F07%2F16%2F174522&quot; title=&quot;オーバーロードされたメソッドをeta-expansionする - kmizuの日記&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>2016-07-16 17:45:22</published>
  <title>オーバーロードされたメソッドをeta-expansionする</title>
  <type>rich</type>
  <url>https://kmizu.hatenablog.com/entry/2016/07/16/174522</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
