{"author_url":"https://blog.hatena.ne.jp/methane/","provider_url":"https://hatena.blog","blog_url":"https://methane.hatenablog.jp/","height":"190","url":"https://methane.hatenablog.jp/entry/20061010/1160494759","author_name":"methane","version":"1.0","type":"rich","image_url":null,"provider_name":"Hatena Blog","title":"\u7d99\u7d9a\u306e\u3059\u3070\u3089\u3057\u3055","description":"Haskell\u3067\u3084\u308b\u3068\u66f8\u3044\u3066\u304a\u3044\u3066\u3001Python\u3067\u3084\u3063\u3061\u3083\u3046\u7f60\u3002 Python\u304c\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u4e2d\u9014\u534a\u7aef\u306a\u7d99\u7d9a\u3053\u3068generator\u3067sort\u3059\u308c\u3070\u3001\u9045\u5ef6\u8a55\u4fa1\u3068\u540c\u3058\u304f\u3001\u300c\u5148\u982dn\u500b\u3060\u3051\u4f7f\u3046\u300d\u3068\u3044\u3046\u7528\u9014\u3067\u306f\u5f8c\u534a\u306esort\u3092\u5b9f\u884c\u3057\u306a\u3044\u3067\u6e08\u3080\u3002 >>> l = [3,5,2,1,4,5,8,2] >>> def lazy_sort(lst): if len(lst) == 0: return mid = lst[0] left = [] right= [] for v in lst[1:]: if v < mid: left.append(v) else: right.append(v) lg = l\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20061010%2F1160494759\" title=\"\u7d99\u7d9a\u306e\u3059\u3070\u3089\u3057\u3055 - methane\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"methane\u306e\u30d6\u30ed\u30b0","published":"2006-10-10 00:39:19","width":"100%","categories":["Python"]}