<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hsgw_n</author_name>
  <author_url>https://blog.hatena.ne.jp/hsgw_n/</author_url>
  <blog_title>備忘録と日記</blog_title>
  <blog_url>https://hsgw-n.hatenadiary.org/</blog_url>
  <categories>
    <anon>R言語</anon>
  </categories>
  <description>・クロージャについて 関数が、その関数のスコープ外のレキシカル変数を参照している状況のことらしい.まあ、包含関係にある一段階上の親（スコープ）の変数を参照してるってことかな.この関数をクロージャといったり、この関数と参照されている変数を含めてクロージャといったりするらしい. ■例1outer.fun1 con inner.fun con con * x + a } return(inner.fun) }#outer.fun1内の変数conとの違いを調べるために宣言 con f1 f1(3) #出力は7 f1(3) #出力は7 f1(3) #出力は7print(con) #出力は10 ■例2 カ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhsgw-n.hatenadiary.org%2Fentry%2F20120210%2F1328902802&quot; title=&quot;R言語: クロージャ - 備忘録と日記&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>2012-02-10 04:40:02</published>
  <title>R言語: クロージャ</title>
  <type>rich</type>
  <url>https://hsgw-n.hatenadiary.org/entry/20120210/1328902802</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
