{"provider_url":"https://hatena.blog","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","url":"https://sirocco.hatenadiary.org/entry/20110213/1297588354","image_url":null,"title":" iterate\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002","width":"100%","version":"1.0","height":"190","provider_name":"Hatena Blog","blog_url":"https://sirocco.hatenadiary.org/","author_name":"sirocco","author_url":"https://blog.hatena.ne.jp/sirocco/","published":"2011-02-13 18:12:34","categories":["Haskell"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20110213%2F1297588354\" title=\" iterate\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002 - 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","description":"iterate \u3092\u691c\u7d22\u3057\u307e\u3057\u3089\u3001\u300citerate\u3067\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8 \u300d\u304c\u3042\u3063\u305f\u306e\u3067\u81ea\u5206\u3067\u3082\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\u3092\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3057\u305f\u3089\u3001\u3061\u3087\u3063\u3068\u8e93\u304d\u307e\u3057\u305f\u3002\u307e\u305a\u3001\u81ea\u5206\u3067\u3084\u3063\u3066\u307f\u307e\u3059\u3002 toRightEdge [x] = [x] toRightEdge (x:y:ls) | x > y = y:toRightEdge (x:ls) | otherwise = x:toRightEdge (y:ls) bubbleSort [] = [] bubbleSort ls = x : bubbleSort xs where (x:xs) = reverse $ toRightEdge ls \u30ea\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308a\u4e00\u756a\u5927\u2026"}