{"categories":["Haskell"],"blog_url":"https://faithandbrave.hateblo.jp/","published":"2008-07-14 18:05:40","version":"1.0","title":" \u7c21\u7d04(reduction)\u3068\u53c2\u7167\u900f\u660e\u6027(referential transparency)","height":"190","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080714%2F1216026340\" title=\" \u7c21\u7d04(reduction)\u3068\u53c2\u7167\u900f\u660e\u6027(referential transparency) - Faith and Brave - C++\u3067\u904a\u307c\u3046\" 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","url":"https://faithandbrave.hateblo.jp/entry/20080714/1216026340","author_name":"faith_and_brave","image_url":null,"description":"\u3044\u307e\u300e\u3075\u3064\u3046\u306eHaskell\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300f\u3067 Haskell \u3092\u52c9\u5f37\u3057\u3066\u3044\u307e\u3059 \u3061\u3087\u3063\u3068\u96e3\u3057\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u30e1\u30e2 square n = n * n \u3053\u306e square \u95a2\u6570\u306b\u5f15\u6570\u3092\u6e21\u3057\u3066\u3001\u95a2\u6570\u3092\u8a55\u4fa1\u3057\u305f\u5834\u5408 square (1 + 3) \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b \u2192 (1 + 3) * (1 + 3) \u2192 4 * 4 \u2192 16 \u3053\u306e\u3088\u3046\u306b\u3001\u95a2\u6570\u306e\u9069\u7528\u3092\u5b9a\u7fa9\u3067\u7f6e\u304d\u63db\u3048\u308b\u4f5c\u696d\u3092\u7c21\u7d04\u3068\u8a00\u3044\u307e\u3059 \u305f\u3060\u3057\u3001 Java \u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a55\u4fa1\u3055\u308c\u307e\u3059 square (1 + 3) \u2192 square (4) \u2192 4 * 4 \u2192 16 \u3053\u306e\u3088\u3046\u306a\u8a55\u4fa1\u65b9\u6cd5\u3092\u6700\u5185\u7c21\u7d04\u3068\u8a00\u3044\u307e\u3059Haskell \u306e\u8a55\u4fa1\u65b9\u6cd5\u306f\u305d\u2026","width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog"}