<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>なんとなく、書いてみたくなったので。カリー化というのは、複数の引数を取る関数を、最初の引数のみ与えると残りの引数を取る関数に変換すること…です。なんか、書くより例を見た方が早いので…。例えば、こういう関数があったとして… def add(x, y): return x + y def add3(x, y, z): return x + y + z 通常、これを呼び出す時は print add(2, 3) # =&gt; 5 print add3(2, 3, 4) # =&gt; 9 と書きますが、これらをカリー化したとすると print add_curried(2)(3) # =&gt; 5 print add…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20120401%2F1333295408&quot; title=&quot;Pythonでカリー化を書いてみる - CLOVER🍀&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-04-01 00:50:08</published>
  <title>Pythonでカリー化を書いてみる</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/20120401/1333295408</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
