<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>knenet</author_name>
  <author_url>https://blog.hatena.ne.jp/knenet/</author_url>
  <blog_title>象徴ヶ淵</blog_title>
  <blog_url>https://knenet.hatenadiary.jp/</blog_url>
  <categories>
    <anon>lisp</anon>
  </categories>
  <description>順列を列挙する関数が野暮用で必要になったが、すぐに書けなかったので書き方を調べた。要素を木構造にして深さ優先探索(DFS)で書けば良いらしい。簡単だね！ (defun permutation (args &amp;optional num head res) (labels ((iter (args num head res) (if (and (plusp num) args) (let (l) (dotimes (i (length args) (apply 'nconc (nreverse l))) (push (iter (nconc (subseq args 0 i) (subseq arg…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fknenet.hatenadiary.jp%2Fentry%2F20121217%2F1355754551&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>2012-12-17 23:29:11</published>
  <title>順列の列挙</title>
  <type>rich</type>
  <url>https://knenet.hatenadiary.jp/entry/20121217/1355754551</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
