{"image_url":null,"author_url":"https://blog.hatena.ne.jp/amarui/","version":"1.0","type":"rich","provider_url":"https://hatena.blog","title":"\u6f14\u7fd21.3","url":"https://marui.hatenablog.com/entry/20120714/1342253080","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarui.hatenablog.com%2Fentry%2F20120714%2F1342253080\" title=\"\u6f14\u7fd21.3 - \u4e38\u4e95\u7d9c\u7814\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","blog_url":"https://marui.hatenablog.com/","blog_title":"\u4e38\u4e95\u7d9c\u7814","description":"\u30ea\u30b9\u30c8\u4e2d\u306b\u542b\u307e\u308c\u308b\u30a2\u30c8\u30e0\u306e\u6570\u3092\u8fd4\u3059\u95a2\u6570count-atoms\u3092\u4f5c\u308b\u3002 ;;; Exercise 1.3 (defun count-atoms (lst) (cond ((null lst) 0) ((listp (first lst)) (+ (count-atoms (first lst)) (count-atoms (rest lst)))) (t (+ 1 (count-atoms (rest lst)))))) \u3068\u4f5c\u3063\u3066\u307f\u305f\u3051\u3069\u3001\u5b9f\u884c\u3057\u3066\u307f\u305f\u3089 (count-atoms '(a (b) c)) ;==> 3 (count-atoms '(a nil c)) ;==> 2 \u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u2026","categories":["PAIP"],"provider_name":"Hatena Blog","author_name":"amarui","height":"190","published":"2012-07-14 17:04:40"}