<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngsw_taro</author_name>
  <author_url>https://blog.hatena.ne.jp/ngsw_taro/</author_url>
  <blog_title>算譜王におれはなる!!!!</blog_title>
  <blog_url>https://taro.hatenablog.jp/</blog_url>
  <categories>
    <anon>Kotlin</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>任意の型Aの拡張関数の中でエンクロージング型Bのメンバを使いたいとき、 次のようなコードは自然ですが、fooはBの中でしか使えなくて不便です。 When we want to use a enclosing type B's members in any type A's extension function, the following code looks natural, but it's inconvenient that foo can be called in only B. class B { fun A.foo() {...} } 下記のように同じ定義を繰り返さなくてはなりませ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaro.hatenablog.jp%2Fentry%2F2016%2F02%2F02%2F141551&quot; title=&quot;&amp;quot;double context extension&amp;quot; pattern （命名適当） #kotlin - 算譜王におれはなる!!!!&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-02-02 14:15:51</published>
  <title>&quot;double context extension&quot; pattern （命名適当） #kotlin</title>
  <type>rich</type>
  <url>https://taro.hatenablog.jp/entry/2016/02/02/141551</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
