{"author_url":"https://blog.hatena.ne.jp/tanakaBox/","title":" SICP\u3092\u8aad\u3080(53) 2.2.2(2) \u6728\u306e\u5199\u50cf","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20071013%2F1192225355\" title=\" SICP\u3092\u8aad\u3080(53) 2.2.2(2) \u6728\u306e\u5199\u50cf - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","published":"2007-10-13 06:42:35","blog_url":"https://boxnos.hatenablog.com/","type":"rich","author_name":"tanakaBox","categories":["Scheme"],"blog_title":"\u30dc\u30af\u30ce\u30b9","height":"190","provider_name":"Hatena Blog","url":"https://boxnos.hatenablog.com/entry/20071013/1192225355","description":"\u3055\u3066\u3055\u3066\u3001\u30ea\u30b9\u30c8\u51e6\u7406\u3082\u672c\u683c\u7684\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u6728\u306e\u5199\u50cf\u3002 \u307e\u305a\u306f\u666e\u901a\u306b \u3075\u3064\u3046\u306b\u3002 (define (scale-tree tree n) (cond ((null? tree) `()) ((not-pair? tree) (* tree n)) (else (cons (scale-tree (car tree) n) (scale-tree (cdr tree) n))))) (scale-tree '(1 (2 (3 4))) 10) ; (10 (20 (30 40))) car,cdr\u3067\u5de1\u308c\u3070\u3044\u3044\u3002\u3042\u3001not-pair\u306fsrfi-1\u304c\u5fc5\u8981\u3002srfi\u3092\u7a4d\u6975\u7684\u306b\u4f7f\u3063\u3066\u3044\u3053\u3046\u3068\u2026","width":"100%"}