<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>elixir</anon>
  </categories>
  <description>タイトルの通り、 Sleep Sort を実装してみました。 Elixir の並行プログラミングを生かしているけど、全く実用的じゃないソートですね！ defmodule SleepSort do def sort(collection) do me = self collection |&gt; Enum.map(fn (n) -&gt; spawn_link fn -&gt; (send me, { :timer.sleep(n * 10) &amp;&amp; n }) end end) |&gt; Enum.map(fn (_pid) -&gt; receive do { result } -&gt; result end end) en…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2016%2F11%2F13%2F225019&quot; title=&quot;Elixir で Sleep Sort を実装する - アジャイルSEの憂鬱&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>2016-11-13 22:50:19</published>
  <title>Elixir で Sleep Sort を実装する</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2016/11/13/225019</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
