<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jdg</author_name>
  <author_url>https://blog.hatena.ne.jp/jdg/</author_url>
  <blog_title>あと味</blog_title>
  <blog_url>https://taiju.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Python</anon>
  </categories>
  <description>Pythonにrange関数という数列を作る関数があるんですが、JavaScriptにもrange関数みたいなのがあると便利かもしれないと思って実装してみました。関数型言語慣れするために再帰で書いたので、あまり長い数列は作れません。 Pythonのfor文 Pythonでは1から10までの数字をプリントする処理はこんな感じで書きます。 for i in range(1,11): print i range関数実装後のJavaScriptのコード JavaScriptでもこうやって書くと同じような結果になります。*1 range(1,11).forEach(function(i) { conso…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaiju.hatenablog.com%2Fentry%2F20100323%2F1269299676&quot; title=&quot;Pythonのrange関数をJavaScriptで再帰を使って実装してみた - あと味&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-23 08:14:36</published>
  <title>Pythonのrange関数をJavaScriptで再帰を使って実装してみた</title>
  <type>rich</type>
  <url>https://taiju.hatenablog.com/entry/20100323/1269299676</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
