{"type":"rich","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e342\u3002\u305f\u307e\u306b\u306fProject Euler\u4ee5\u5916\u3082\u3002 Haskell\u306e\u95a2\u6570\u3001\u7279\u306bPrelude\u306b\u3042\u308b\u3088\u3046\u306a\u3084\u3064\u306f\u5b9f\u306b\u8003\u3048\u3089\u308c\u3066\u3044\u308b\u3002\u4f8b\u3048\u3070\u3001foldl1\u3042\u305f\u308a\u306f\u7c21\u5358\u306b\u66f8\u3051\u308b\u306e\u306b\u3001\u304b\u306a\u308a\u3044\u308d\u3093\u306a\u3068\u3053\u308d\u3067\u4f7f\u3048\u3066\u4fbf\u5229\u3060\u3063\u305f\u308a\u3059\u308b\u3002 \u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u306e\u3042\u305f\u308a\u306e\u95a2\u6570\u3092OCaml\u306b\u79fb\u690d\u3057\u3066\u307f\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u30ea\u30b9\u30c8\u95a2\u4fc2\u306e\u95a2\u6570\u304b\u3089\u3002\u3044\u3061\u304a\u3046\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3082\u66f8\u3044\u3066\u304a\u3044\u305f\u3002 \u4f7f\u3044\u65b9 # last [1;2];; - : int = 2p # sum [1;2;3];; - : int = 6 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 let (@@) f g = f g let ($) f g x = f (g x) le\u2026","url":"https://mzp.hatenadiary.org/entry/20080804/hlist","author_url":"https://blog.hatena.ne.jp/mzp/","author_name":"mzp","image_url":null,"width":"100%","title":"Haskell\u306e\u30ea\u30b9\u30c8\u64cd\u4f5c\u3092OCaml\u306b\u79fb\u690d(1)","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","published":"2008-08-04 00:00:00","categories":["Ocaml","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080804%2Fhlist\" title=\"Haskell\u306e\u30ea\u30b9\u30c8\u64cd\u4f5c\u3092OCaml\u306b\u79fb\u690d(1) - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" 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","provider_name":"Hatena Blog","height":"190","blog_url":"https://mzp.hatenadiary.org/"}