{"title":"SICP\u306e\u52c9\u5f37 \u554f\u984c2.27~28","type":"rich","blog_title":"Arantium Maestum","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2016%2F06%2F08%2F190703\" title=\"SICP\u306e\u52c9\u5f37 \u554f\u984c2.27~28 - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://zehnpaard.hatenablog.com/entry/2016/06/08/190703","width":"100%","published":"2016-06-08 19:07:03","author_url":"https://blog.hatena.ne.jp/zehnpaard/","blog_url":"https://zehnpaard.hatenablog.com/","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"height":"190","categories":["Clojure","SICP"],"description":"2.27 \u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u9006\u9806\u306b\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u305d\u306e\u30ea\u30b9\u30c8\u306b\u542b\u307e\u308c\u308b\u5168\u3066\u306e\u30ea\u30b9\u30c8\u3082\u540c\u6642\u306b\u9006\u306b\u3059\u308b\u95a2\u6570\uff1a (defn deep-reverse [x] (if (not (seq? x)) x (loop [items x result ()] (if (empty? items) result (recur (rest items) (cons (deep-reverse (first items)) result)))))) Dynamic typing\u4e07\u6b73\u3001\u3068\u8a00\u3044\u305f\u304f\u306a\u308b\u3088\u3046\u306a\u3086\u308b\u301c\u3044\u5b9f\u88c5\u3002\u3042\u3068\u3001seq?\u3060\u3068\u30ea\u30b9\u30c8\u3084cons\u3067\u3067\u304d\u305f\u9045\u5ef6\u30ea\u30b9\u30c8\u306f\u5927\u4e08\u592b\u3060\u304cvector\u306f\u30c0\u30e1\u3002 2.28 nes\u2026","author_name":"zehnpaard","provider_name":"Hatena Blog"}