{"blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20111115%2F1321307810\" title=\"unfold \u95a2\u6570 - 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>","blog_url":"https://sirocco.hatenadiary.org/","height":"190","author_name":"sirocco","provider_url":"https://hatena.blog","width":"100%","type":"rich","title":"unfold \u95a2\u6570","description":"\u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 Haskell \u7b2c\uff17\u7ae0 \u9ad8\u968e\u95a2\u6570\u300d\u306e\u7df4\u7fd2\u554f\u984c\u306b unfold \u95a2\u6570\u304c\u767b\u5834\u3057\u3066\u3044\u307e\u3059\u3002 unfoldr \u306f Data.List \u306b\u3082\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306a\u95a2\u6570\u306a\u306e\u304b\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 fold\u306f\u30ea\u30b9\u30c8\u304b\u3089\u5024\u3092\u6c42\u3081\u307e\u3059\u304c\u3001\u554f\u984c\u3067\u4f5c\u3089\u308c\u3066\u3044\u308b unfold \u95a2\u6570\u306f\u521d\u671f\u5024\u304b\u3089\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u95a2\u6570\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059\u306e\u306f\u6b21\u306e\uff13\u3064\u306e\u95a2\u6570\u3067\u3059\u3002unfold (\u7d42\u4e86\u3092\u5224\u5b9a\u3059\u308b\u95a2\u6570) (\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u4f5c\u308b\u95a2\u6570) (\u518d\u5e30\u306b\u6e21\u3059\u5024\u3092\u4f5c\u308b\u95a2\u6570) unfold p h t x | p x = [] |otherwise = h x : unfold p h t (t x) int2bin \u2026","categories":["Haskell"],"url":"https://sirocco.hatenadiary.org/entry/20111115/1321307810","author_url":"https://blog.hatena.ne.jp/sirocco/","provider_name":"Hatena Blog","published":"2011-11-15 06:56:50","version":"1.0"}