<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>awacio</author_name>
  <author_url>https://blog.hatena.ne.jp/awacio/</author_url>
  <blog_title>awacio.log</blog_title>
  <blog_url>https://awacio.hatenadiary.org/</blog_url>
  <categories>
    <anon>Scheme</anon>
    <anon>SICP</anon>
  </categories>
  <description>【問題】 引数として（リストとして表現されている）木をとり、その要素が、木の全ての葉を、左から右の順に並べたものであるリストを返す手続き fringe を書け。例えば、 (define x (list (list 1 2) (list 3 4))) (fringe x) (1 2 3 4) (fringe x x) (1 2 3 4 1 2 3 4) 【解答】 これも再帰使う感じ。 (define (fringe . lis) (reverse (let loop ((src lis) (dst '())) (cond ((null? src) dst) ((list? (car src)) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fawacio.hatenadiary.org%2Fentry%2F20100508%2F1273288062&quot; title=&quot;SICP 問題 2.28（葉をトップレベルの要素に全て展開する） - awacio.log&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>2010-05-08 12:07:42</published>
  <title>SICP 問題 2.28（葉をトップレベルの要素に全て展開する）</title>
  <type>rich</type>
  <url>https://awacio.hatenadiary.org/entry/20100508/1273288062</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
