<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakahisateru</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakahisateru/</author_url>
  <blog_title>なんたらノート第三期ベータ</blog_title>
  <blog_url>https://tanakahisateru.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>jQueryには、普通の配列にも使えるeachやmapがあるのですが、残念なことに、畳み込み演算できるreduceがありません。というわけで、こんなことしました。 $.reduce = function(list, func, init){ var r = init; for(var i = 0; i &lt; list.length; i++) { if(i == 0 &amp;&amp; init == undefined) { r = list[i]; } else { r = func.call(r, list[i]); } } return r; }; これで、またさらに関数的にプログラミングできます。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahisateru.hatenablog.jp%2Fentry%2F20100326%2F1269598334&quot; title=&quot;jQueryにreduceがなかったので書いた - なんたらノート第三期ベータ&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>2010-03-26 19:12:14</published>
  <title>jQueryにreduceがなかったので書いた</title>
  <type>rich</type>
  <url>https://tanakahisateru.hatenablog.jp/entry/20100326/1269598334</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
