<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xuwei</author_name>
  <author_url>https://blog.hatena.ne.jp/xuwei/</author_url>
  <blog_title>xuwei-k's blog</blog_title>
  <blog_url>https://xuwei-k.hatenablog.com/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>apply unapply unapplySeq update の4つのメソッドは定義するときは普通のメソッドだけど、使うときは特別な使い方になる。というか、コンパイラがこれらのメソッドだけ特別扱いして、メソッド呼び出しでは無いような構文になる。 ただ、普通に呼ぶことも可能。 apply そのクラスまたはオブジェクトに()をつけて、そのオブジェクト自体が関数みたいな感じで使用できる。List()とかArray()とか unapply これを定義すると、パターンマッチが使える場所 (match式のcase、varやval定義の代入、関数リテラルでのcaseなど) で、抽出子として利用できる un…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F20100618%2F1276874681&quot; title=&quot;apply unapply unapplySeq update - xuwei-k&amp;#39;s blog&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-06-18 00:24:41</published>
  <title>apply unapply unapplySeq update</title>
  <type>rich</type>
  <url>https://xuwei-k.hatenablog.com/entry/20100618/1276874681</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
