{"image_url":null,"blog_url":"https://mzp.hatenadiary.org/","width":"100%","title":"Scheme\u306edefine\u3063\u3066\u30ec\u30ad\u30b7\u30ab\u30eb\u30b9\u30b3\u30fc\u30d7\u3058\u3083\u306a\u3044\u3088\u306d","categories":["Scheme","OCaml"],"version":"1.0","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","height":"190","author_url":"https://blog.hatena.ne.jp/mzp/","url":"https://mzp.hatenadiary.org/entry/20081218/lexical","published":"2008-12-18 00:00:01","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20081218%2Flexical\" title=\"Scheme\u306edefine\u3063\u3066\u30ec\u30ad\u30b7\u30ab\u30eb\u30b9\u30b3\u30fc\u30d7\u3058\u3083\u306a\u3044\u3088\u306d - \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","description":"Scheme\u306e\u5834\u5408 Scheme\u306edefine\u306fset!\u3068\u4f3c\u305f\u611f\u3058\u306b\u306a\u308b\u306e\u3067\u3001\u5909\u6570\u30922\u56dedefine\u3059\u308b\u3068\u6700\u521d\u306e\u5024\u304c\u5909\u308f\u308b\u3002 (define x 1) (define (f) x) (define x 2) (print (f)) ;; => 2 OCaml\u306e\u5834\u5408 \u3067\u3001\u307f\u3093\u306a\u5927\u597d\u304dOCaml\u306e\u5834\u5408\u306f\u3001\u4e8c\u56delet\u3057\u3066\u3082\u6700\u521d\u306e\u5024\u306f\u5909\u308f\u3089\u306a\u3044\u3002 let x = 1 let f _ = x let x = 2 let _ = print_int (f ());; (* => 1 *) \u3067\u3001\u4f55\u304c\u554f\u984c\u306a\u306e? \u30dc\u30af\u306e\u4f5c\u3063\u3066\u308bScheme-abc\u306fOCaml\u98a8\u306edefine\u3092\u63a1\u7528\u3057\u3066\u308b\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u304c\u308f\u308a\u3068A\u2026","author_name":"mzp","provider_name":"Hatena Blog","type":"rich"}