{"title":"Common Lisp \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9","author_name":"sirocco","provider_name":"Hatena Blog","version":"1.0","width":"100%","blog_url":"https://sirocco.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100820%2F1282253487\" title=\"Common Lisp \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9 - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","url":"https://sirocco.hatenadiary.org/entry/20100820/1282253487","categories":["SBCL","Common Lisp"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/sirocco/","image_url":null,"height":"190","description":"Common Lisp \u3067\u30a8\u30e9\u30c8\u30b9\u30c6\u30cd\u30b9\u306e\u7be9\u3092\u3084\u3063\u3066\u307f\u3066\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u3002 make-list \u3068\u3044\u3046\u95a2\u6570\u306f\u5b9a\u7fa9\u3067\u304d\u307e\u305b\u3093\u3002 null? \u304c\u306a\u3044\u306e\u3067 atom \u3092\u4f7f\u3063\u305f\u3002 \u4f59\u308a\u3092\u6c42\u3081\u308b\u95a2\u6570\u306f mod \u3002 ;; x \u304b\u3089 max \u307e\u3067\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u3063\u3066\u8fd4\u3059\u3002 ;; (mk-list 1 10) ;=> (1 2 3 4 5 6 7 8 9 10) (defun mk-list (x max) (if (= x max) (list max) (cons x (mk-list (+ x 1) max)))) ;; \u5f15\u6570\u306e\u30ea\u30b9\u30c8 ls \u304b\u3089 x \u3067\u5272\u308a\u304d\u308c\u308b\u8981\u7d20\u3092\u524a\u9664\u3057\u305f\u30ea\u30b9\u30c8\u3092\u8fd4\u3059\u3002 ;; (dele\u2026","published":"2010-08-20 06:31:27"}