{"categories":["SICP"],"blog_title":"\u7406\u7cfb\u5b66\u751f\u65e5\u8a18","provider_name":"Hatena Blog","height":"190","author_url":"https://blog.hatena.ne.jp/kiririmode/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20080311%2Fp3\" title=\"\u554f\u984c3-16 (3.3.1  Mutable List Structure) - \u7406\u7cfb\u5b66\u751f\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"pair \u306e\u6570\u304c 3 \u500b\u306a\u306e\u306b\u3082\u95a2\u308f\u3089\u305a\uff0ccount-pair \u306e\u8fd4\u308a\u5024\u304c 3\uff0c4\uff0c7\uff0c\u5236\u5fa1\u3092\u8fd4\u3055\u306a\u3044\u3068\u3044\u3046 4 \u30d1\u30bf\u30fc\u30f3\u306e\u5f15\u6570\u3092\u8003\u3048\u308d\u3068\u3044\u3046\u8a71\uff0e (define (count-pairs x) (if (not (pair? x)) 0 (+ (count-pairs (car x)) (count-pairs (cdr x)) 1))) \u6700\u521d\u52d8\u9055\u3044\u3057\u3066\u3066\u3068\u307e\u3069\u3063\u305f\u3051\u3069\uff0c\u3088\u3046\u3084\u304f\u30b9\u30c3\u30ad\u30ea\u3057\u305f\uff0e (define return-three (cons (cons 'a 'b) (cons 'c 'd))) (count-pairs return-three) ; 3 (define pair1 \u2026","blog_url":"https://kiririmode.hatenablog.jp/","type":"rich","published":"2008-03-11 00:00:02","url":"https://kiririmode.hatenablog.jp/entry/20080311/p3","width":"100%","author_name":"kiririmode","provider_url":"https://hatena.blog","version":"1.0","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kiririmode/20080313/20080313011326.png","title":"\u554f\u984c3-16 (3.3.1  Mutable List Structure)"}