{"author_url":"https://blog.hatena.ne.jp/sirocco/","blog_url":"https://sirocco.hatenadiary.org/","categories":["Haskell"],"published":"2010-03-28 14:23:47","version":"1.0","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","author_name":"sirocco","provider_name":"Hatena Blog","url":"https://sirocco.hatenadiary.org/entry/20100328/1269753827","title":"flip : \u5f15\u6570\u3092\u9006\u306b\u9069\u7528\u3059\u308b\u95a2\u6570 ","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100328%2F1269753827\" title=\"flip : \u5f15\u6570\u3092\u9006\u306b\u9069\u7528\u3059\u308b\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>","provider_url":"https://hatena.blog","height":"190","width":"100%","type":"rich","description":"flip \u306f\u4e8c\u3064\u306e\u5f15\u6570\u3092\u3068\u308b\u95a2\u6570\u3068\u4e8c\u3064\u306e\u5f15\u6570\u3092\u3068\u3063\u3066\u3072\u3068\u3064\u306e\u5024\u3092\u8fd4\u3059\u3002 Prelude> :t flip flip :: (a -> b -> c) -> b -> a -> c \u5f15\u6570\u306e\u4e0e\u3048\u305f\u6587\u5b57\u5217\u3092\u9023\u7d50\u3057\u3066\u51fa\u529b\u3059\u308b\u95a2\u6570 Prelude> let func a b = a++\":\"++b Prelude> func \"aaa\" \"bbb\" \"aaa:bbb\" Prelude> flip func \"aaa\" \"bbb\" -- flip\u306b\u95a2\u6570\u3068\u4e8c\u3064\u306e\u5f15\u6570\u3092\u6e21\u3059\u3068\u9006\u306b\u9069\u7528\u3055\u308c\u308b\u3002 \"bbb:aaa\" \u5f15\u6570\u3092\u9006\u306b\u3059\u308b\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3002 Prelude> let func2= flip func Pre\u2026"}