{"description":"CPS, Continuation Monad, and Writer Monad \u306e\u4f8b\u3002 part :: (a -> Bool) -> [a] -> [a] part p l = let f [] z = z f (x:xs) z = if p x then x : f xs z else f xs (z++[x]) in f l []\u3092\u3044\u308d\u3044\u308d\u306b\u66f8\u3044\u3066\u307f\u308b*1\u3002 *1:[id:yokoyamatetsuo:20050219#p5]\u3088\u308a","published":"2005-02-20 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyts.hatenadiary.org%2Fentry%2F20050220%2Fp1\" title=\" Examples - One of the Eight Stones\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Haskell"],"title":" Examples","type":"rich","provider_name":"Hatena Blog","width":"100%","url":"https://yts.hatenadiary.org/entry/20050220/p1","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/yts/","blog_url":"https://yts.hatenadiary.org/","image_url":null,"blog_title":"One of the Eight Stones","height":"190","author_name":"yts"}