<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>読書ノート</anon>
  </categories>
  <description>前回 リスト遊び 5-1 再帰の再帰 - by shigemk2replを拡張して、入れ子のリストも取扱えるrepl*を実装してみる。 リストの先頭の要素がリストである場合には、その内側リストと共に repl*を呼び出し、oldをnewに置き換える。そしてリストの残りに対しても repl*を呼び出す。repl*が返すのはリストだから、前者を後者にconsするとよい。 リストにconsしているから、どれだけ複雑なリスト構造でも構造を全く破壊せずに アトム部分だけを置換できる。 (defun repl (lst old new) (cond ((null lst) nil) ((eq (car l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120204%2F1328331740&quot; title=&quot;リスト遊び 5-2 置換* - by shigemk2&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>http://ecx.images-amazon.com/images/I/51BZ2NQA92L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-02-04 14:02:20</published>
  <title>リスト遊び 5-2 置換*</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20120204/1328331740</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
