<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Erlang</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その515。Erlangでambを作ろうとしたら、いつのまにかmapになっていた。 id:Gemmaさんが、またambを書いていた。ホントに ambって継続を使って、ひとつづつ計算してるけど、全部並列で計算しちゃえばよくね?と思ってErlangで作ってみた。そしたら、いつのまにか単なる並列mapになっていた。まあ、ambもconcatMapで書けるし、当然の結果だと思う。 使い方 三平方の定理を満たす整数の組を探してみる。 forever(F)-&gt; receive X -&gt; F(X), forever(F) end. main()-&gt; Ans = spawn(fun() -&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090125%2Famb&quot; title=&quot;Erlangでambを作ろうとしたら、いつのまにかmapになっていた - みずぴー日記&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>2009-01-25 00:00:00</published>
  <title>Erlangでambを作ろうとしたら、いつのまにかmapになっていた</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20090125/amb</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
