{"published":"2010-03-27 06:39:27","image_url":null,"provider_name":"Hatena Blog","url":"https://sirocco.hatenadiary.org/entry/20100327/1269639567","title":"\u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 Haskell\u300d \u8aad\u66f8\u30e1\u30e2","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","width":"100%","version":"1.0","author_name":"sirocco","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 Haskell \u7b2c5\u7ae0 \u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18 ghci> [x^2|x<-[1..5]] \uff70\uff70 1 \u304b\u3089 5 \u306e\u30ea\u30b9\u30c8\u306e\u8981\u7d20 x \u306b\u3064\u3044\u3066\u4e8c\u4e57\u3057\u305f\u5024 [1,4,9,16,25] ghci> [(x,y)|x<-[1..3],y<-[4,5]] [(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)] ghci> [(x,y)|y<-[4,5],x<-[1..3]] [(1,4),(2,4),(3,4),(1,5),(2,5),(3,5)] -- \u91cd\u8907\u306e\u306a\u3044\u7d44\u307f\u5408\u308f\u305b ghci> let pairing n = [(x,y)|x<-[1..n],y<-[x..n]] \u2026","blog_url":"https://sirocco.hatenadiary.org/","categories":["Haskell"],"height":"190","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/sirocco/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100327%2F1269639567\" title=\"\u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 Haskell\u300d \u8aad\u66f8\u30e1\u30e2 - 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"}