{"author_url":"https://blog.hatena.ne.jp/ha-tan/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20070712%2F1184192660\" title=\" \u30a2\u30ec\u30a4\u306euniq - \u8da3\u5473\u7684\u306b\u3063\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","width":"100%","image_url":null,"provider_name":"Hatena Blog","blog_url":"https://ha-tan.hatenadiary.org/","published":"2007-07-12 07:24:20","provider_url":"https://hatena.blog","version":"1.0","title":" \u30a2\u30ec\u30a4\u306euniq","url":"https://ha-tan.hatenadiary.org/entry/20070712/1184192660","type":"rich","categories":["Haskell"],"author_name":"ha-tan","blog_title":"\u8da3\u5473\u7684\u306b\u3063\u304d","description":"\u30a8\u30ed\u3068\u98a8\u4fd7\u60c5\u5831\u6e80\u8f09 \u3069\u3046\u629c\u304f\uff1f\u3063\u3066Haskell\u3060\u3063\u305f\u3089nub\u3060\u306a\u3041\u3068\u601d\u3063\u3066\u3001GHC\u306e\u30bd\u30fc\u30b9\u3092\u898b\u3066\u307f\u308b\u3068\u3075\u305f\u3064\u5b9f\u88c5\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u307e\u305a\u3072\u3068\u3064\u76ee\u3002USE_REPORT_PRELUDE\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u306f\u3053\u3061\u3089\u3092\u4f7f\u3063\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3002 nub :: (Eq a) => [a] -> [a] nub = nubBy (==) nubBy :: (a -> a -> Bool) -> [a] -> [a] nubBy eq [] = [] nubBy eq (x:xs) = x : nubBy eq (filter (\\ y -> not (eq x y)) xs) \u3075\u305f\u3064\u76ee\u3002\u3075\u3080\u3002\u3053\u3063\u3061\u306e\u65b9\u304c\u30ea\u30b9\u2026"}