<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Otter_O</author_name>
  <author_url>https://blog.hatena.ne.jp/Otter_O/</author_url>
  <blog_title>取り急ぎブログです</blog_title>
  <blog_url>https://otter-o.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>重複、省略のない順列を返す関数を書いてみました。なんだか、もっと簡単にかけそうな気がするのですが、さっぱりといきません…Preludeとかにあっても驚かない気もするのですが、見つかりませんでした。順列生成の元となる要素集合をリスト[a]で与えて、そこから生成される順列をaで帰すという形にします。 permutation :: [a] -&gt; [ [a] ]そして、次のような結果を返したいわけです... permutation [1, 2, 3] = [ [1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1] ]僕が最初にひ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fotter-o.hatenadiary.org%2Fentry%2F20080515%2F1210835626&quot; title=&quot;順列組み合わせの生成 - 取り急ぎブログです&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>2008-05-15 16:13:46</published>
  <title>順列組み合わせの生成</title>
  <type>rich</type>
  <url>https://otter-o.hatenadiary.org/entry/20080515/1210835626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
