<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kureduki_Maari</author_name>
  <author_url>https://blog.hatena.ne.jp/Kureduki_Maari/</author_url>
  <blog_title>c4se記：さっちゃんですよ☆</blog_title>
  <blog_url>https://c4se.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Ruby</anon>
    <anon>Clojure</anon>
  </categories>
  <description>Clojureのloop-recurを、Rubyでやった。Elixirの古いversionにも有ったらしい。 末尾再帰の最適化 (TCO, tail call optimization) が出来ないsystemだと、助かるみたい。Ruby 2.0.0とかClojureみたいな。 def factorial n cloop n, 1 do |n, acc| if n == 0 acc else recur n - 1, acc * n end end end みたいに使ふ。 instance_evalしか知らなくて、instance_execを見附け出すのに一番時間が掛った。アホだ。Rubyだと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc4se.hatenablog.com%2Fentry%2F2013%2F09%2F05%2F184937&quot; title=&quot;RubyでClojure風loop-recur (末尾再帰) - c4se記：さっちゃんですよ☆&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>2013-09-05 18:49:37</published>
  <title>RubyでClojure風loop-recur (末尾再帰)</title>
  <type>rich</type>
  <url>https://c4se.hatenablog.com/entry/2013/09/05/184937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
