{"author_name":"yoshihiro503","height":"190","categories":["coq","fold_left","fold_right"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosh.hateblo.jp%2Fentry%2F20110724%2Fp1\" title=\"fold_left\u3068fold_right\u304c\u540c\u3058\u306b\u306a\u308b\u3068\u304d - \u306b\u308f\u3068\u308a\u5c0f\u5c4b\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2011-07-24 00:00:00","type":"rich","version":"1.0","title":"fold_left\u3068fold_right\u304c\u540c\u3058\u306b\u306a\u308b\u3068\u304d","author_url":"https://blog.hatena.ne.jp/yoshihiro503/","blog_title":"\u306b\u308f\u3068\u308a\u5c0f\u5c4b\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","provider_url":"https://hatena.blog","width":"100%","blog_url":"https://yosh.hateblo.jp/","url":"https://yosh.hateblo.jp/entry/20110724/p1","description":"fold_left\u3068fold_right\u306e\u7d50\u679c\u304c\u540c\u3058\u306b\u306a\u308b\u3068\u304d\u304c\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u5c11\u3057\u8abf\u3079\u3066\u307f\u305f\u3002\u4f8b\u3048\u3070\u6587\u5b57\u5217\u306e\u30ea\u30b9\u30c8\u3092\u9023\u7d50\u3057\u3066\u4e00\u3064\u306e\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b\u6b21\u306e\u4f8b\u306ffold_left\u3067\u3082fold_right\u3067\u3082\u540c\u69d8\u306b\u5b9a\u7fa9\u3067\u304d\u3066\u540c\u3058\u95a2\u6570\u306b\u306a\u308b\u3002Coq\u3067\u66f8\u304f\u3068\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3002 Definition xs := \"foo\" :: \"bar\" :: \"baz\" :: nil. Eval compute in (fold_left append xs \"\"). Eval compute in (fold_right append \"\" xs). fold_left\u3068fold_right\u306e\u5b9a\u7fa9\u306f\u305d\u308c\u305e\u308c\u6b21\u306e\u3068\u304a\u308a \u2026","image_url":null,"provider_name":"Hatena Blog"}