<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>napthats</author_name>
  <author_url>https://blog.hatena.ne.jp/napthats/</author_url>
  <blog_title>napthats’</blog_title>
  <blog_url>https://napthats.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>モナド</anon>
  </categories>
  <description>練習のためにやってみた。アルゴリズムは以下のような感じ(入力sは重複のないn個の実数のリストとする)。 リストから一つの要素x1を取ってくる リストからx1 &lt; x2であるような一つの要素x2を取ってくる リストからx2 &lt; x3であるような一つの要素x3を取ってくる ...以下繰り返し... [x1, x2, x3, ... , xn]を返すこれをそのまま書き下すとこうなる。 sort s = [x1 | x1 &lt;- s] &gt;&gt;= \x1 -&gt; [x2 | x2 &lt;- s, x1 &lt; x2] &gt;&gt;= \x2 -&gt; [x3 | x3 &lt;- s, x2 &lt; x3] &gt;&gt;= \x3 -&gt; ...繰…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnapthats.hatenadiary.org%2Fentry%2F20120116%2F1326714680&quot; title=&quot;リストモナドの非決定性計算を使ってソートする - napthats’&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>2012-01-16 20:51:20</published>
  <title>リストモナドの非決定性計算を使ってソートする</title>
  <type>rich</type>
  <url>https://napthats.hatenadiary.org/entry/20120116/1326714680</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
