{"blog_url":"https://shuzo-kino.hateblo.jp/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2013%2F11%2F20%2F202327\" title=\"lambda\u306e\u5225\u540d\u300c-&gt;(x)\u300d - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"published":"2013-11-20 20:23:27","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","description":"lisper\u5fa1\u7528\u9054\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3044\u3048\u3070\u3001lambda\u3067\u3059\u306d\u3002 \u8a31\u5bb9\u53ef\u80fd\u306aLisp\u306a\u3093\u3066\u547c\u3070\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u3001Ruby\u3082\u5f53\u7136\u4f7f\u3048\u307e\u3059\u3002 1.9\u7cfb\u4ee5\u964d\u3067\u306f\u3001\u4f7f\u3044\u3084\u3059\u304f\u306a\u308b\u3088\u3046\u306b->\u3068\u3044\u3046\u5225\u540d\u304c\u4e0e\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002 ->(a,b){ p [a,b] } \u306f lambda{|a, b| p [a, b] } \u3068\u540c\u3058\u610f\u5473\u3067\u3059\u3002 \u5b9f\u4f8b def deriv(f, dx) ->(x){ (f[x + dx] - f[x]) / dx } end sin = ->(x){ Math.sin(x) } cos = deriv(sin, 0.00000001) puts sin[Math::PI / 2] puts co\u2026","title":"lambda\u306e\u5225\u540d\u300c->(x)\u300d","categories":["ruby"],"blog_title":"Bye Bye Moore","author_name":"shuzo_kino","version":"1.0","provider_name":"Hatena Blog","url":"https://shuzo-kino.hateblo.jp/entry/2013/11/20/202327","type":"rich","provider_url":"https://hatena.blog","width":"100%"}