<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>CortYuming</author_name>
  <author_url>https://blog.hatena.ne.jp/CortYuming/</author_url>
  <blog_title>牌語備忘録 -pygo</blog_title>
  <blog_url>https://cortyuming.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Ruby</anon>
  </categories>
  <description>Revenge of the Nerds Ruby def foo(n) lambda { |i| n += i } end f = foo(1) puts f.call(1) puts f.call(2) puts f.call(3) puts f.call(4) puts f.call(5) #=&gt; 2 #=&gt; 4 #=&gt; 7 #=&gt; 11 #=&gt; 16 #=&gt; nil Python Python の lambda は式しか使えない。代入は文なので下記はエラーになる。 def foo(n): lambda i: n += i # SyntaxError: invalid syntax だか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F20120611%2Fp1&quot; title=&quot;『ハッカーと画家』第13章 オタク野郎の復習 付録：力 のアキュムレータのとこクロージャの件のメモ - 牌語備忘録 -pygo&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-06-11 00:00:00</published>
  <title>『ハッカーと画家』第13章 オタク野郎の復習 付録：力 のアキュムレータのとこクロージャの件のメモ</title>
  <type>rich</type>
  <url>https://cortyuming.hateblo.jp/entry/20120611/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
