<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kenmo</author_name>
  <author_url>https://blog.hatena.ne.jp/kenmo/</author_url>
  <blog_title>ゲームプログラムめも日記</blog_title>
  <blog_url>https://kenmo.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonにはlambda（ラムダ）式という面白そうなものがあったので、使い方を調べてみました。 初めてのPythonより引用。 lambda式を実行すると関数を作成し、関数が式の戻り値となる。 defだと関数名に関数が入れられますが、lambdaを使うと変数に関数を入れることができます。 例えば、 sqrt = lambda x: x ** 2 print sqrt(5) とすると、25が表示されます。 ローカル関数みたいなイメージです。 defがグローバル関数みたいな。 いやはや、簡易的に関数をさくっとつくれて、なかなか楽しいですね。 ところで、 なんとリストに入れることも可能です。 L…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenmo.hatenadiary.org%2Fentry%2F20050212%2Fp2&quot; title=&quot;lambda式 - ゲームプログラムめも日記&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>2005-02-12 00:00:01</published>
  <title>lambda式</title>
  <type>rich</type>
  <url>https://kenmo.hatenadiary.org/entry/20050212/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
