{"author_name":"mzp","provider_url":"https://hatena.blog","width":"100%","title":"qsort.scm","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20070424%2Fqsort\" title=\"qsort.scm - \u307f\u305a\u3074\u30fc\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>","image_url":null,"blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","published":"2007-04-24 00:00:00","author_url":"https://blog.hatena.ne.jp/mzp/","description":"\u75c5\u307f\u4e0a\u304c\u308a\u306a\u306e\u3067\u3001\u697d\u305d\u3046\u306a\u306e\u3092\u9078\u3093\u3060\u308910\u5206\u3067\u7d42\u308f\u3063\u305f\u3002\u307e\u3042\u3001\u3044\u3044\u304b\u3002 \u4eca\u65e5\u306e\u30cd\u30bf\u306f\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u3002 gosh> (qsort '(2 4 1 5 5)) (1 2 4 5 5){friend:hiro}\u3042\u305f\u308a\u306f\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u306f\u8907\u96d1\u3060\u3068\u601d\u3063\u3066\u3044\u308b\u307f\u305f\u3044\u3060\u3051\u308c\u3069\u3082\u3001\u518d\u5e30\u3068\u30ea\u30b9\u30c8\u3092\u4f7f\u3048\u3070\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u3051\u308b\u3002\u8907\u96d1\u306a\u306e\u306f\u3001\u30eb\u30fc\u30d7\u3068\u914d\u5217\u3092\u4f7f\u3063\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3002 (use srfi-1) (define (qsort lst) (if (or (null? lst) (= (length lst) 1)) lst (let* ((pivot (car lst)) (lst2 (cdr lst)) (bef\u2026","type":"rich","height":"190","blog_url":"https://mzp.hatenadiary.org/","version":"1.0","url":"https://mzp.hatenadiary.org/entry/20070424/qsort","categories":["Scheme","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"provider_name":"Hatena Blog"}