2016-02-02から1日間の記事一覧
任意の型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…
任意の型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…