<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unarist</author_name>
  <author_url>https://blog.hatena.ne.jp/unarist/</author_url>
  <blog_title>うならぼ</blog_title>
  <blog_url>https://unarist.hatenablog.com/</blog_url>
  <categories>
    <anon>Javascript</anon>
  </categories>
  <description>ask.fm Haskellで書いて短いのはともかく、JSのコードがなんとも。 探してみると Array.prototype.reduce() があった。ちゃんと要素のインデックスも渡してくれるので、これを順に足しこめばいける。 あとは要素数Nの配列をどうするか。Array(100) とすればundefinedが100個並んだ配列が・・・できない。 Javascriptの配列はインデックスをキーとしたオブジェクトなので、通常100要素の配列というと { 0: undefined, 1: undefined, ..., 99: undefined, length: 100 } といったオブジェク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funarist.hatenablog.com%2Fentry%2F2015%2F09%2F17%2F004753&quot; title=&quot;JSで1..Nの総和を計算する、もしくは要素数Nの配列を作る - うならぼ&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>2015-09-17 00:47:53</published>
  <title>JSで1..Nの総和を計算する、もしくは要素数Nの配列を作る</title>
  <type>rich</type>
  <url>https://unarist.hatenablog.com/entry/2015/09/17/004753</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
