<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ha-tan</author_name>
  <author_url>https://blog.hatena.ne.jp/ha-tan/</author_url>
  <blog_title>趣味的にっき</blog_title>
  <blog_url>https://ha-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Haskell</anon>
  </categories>
  <description>この間のErlang勉強会で勉強した順列を生成する関数をいろいろと移植してみました。まず元のErlangの実装は以下。与えられたリストから要素を1つ取り出して、残りの要素から再帰的に順列を求めて、それらを結合するアルゴリズムです。ふむ、とてもシンプルです。 perms([]) -&gt; [[]]; perms(L) -&gt; [[H|T] || H &lt;- L, T &lt;- perms(L--[H])]. まずHaskellの場合。Erlangと似たようなものです。でも型があると何か落ち着きます。ふつう遅延評価なので大きなリストを渡しても難しいこと考えなくてよさそうです。 module Main (mai…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20070611%2F1181570186&quot; title=&quot; 順列の生成とList内包表記 - 趣味的にっき&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>2007-06-11 22:56:26</published>
  <title> 順列の生成とList内包表記</title>
  <type>rich</type>
  <url>https://ha-tan.hatenadiary.org/entry/20070611/1181570186</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
