{"published":"2005-02-12 00:00:01","description":"Python\u306b\u306flambda\uff08\u30e9\u30e0\u30c0\uff09\u5f0f\u3068\u3044\u3046\u9762\u767d\u305d\u3046\u306a\u3082\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u4f7f\u3044\u65b9\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002 \u521d\u3081\u3066\u306ePython\u3088\u308a\u5f15\u7528\u3002 lambda\u5f0f\u3092\u5b9f\u884c\u3059\u308b\u3068\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3001\u95a2\u6570\u304c\u5f0f\u306e\u623b\u308a\u5024\u3068\u306a\u308b\u3002 def\u3060\u3068\u95a2\u6570\u540d\u306b\u95a2\u6570\u304c\u5165\u308c\u3089\u308c\u307e\u3059\u304c\u3001lambda\u3092\u4f7f\u3046\u3068\u5909\u6570\u306b\u95a2\u6570\u3092\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001 sqrt = lambda x: x ** 2 print sqrt(5) \u3068\u3059\u308b\u3068\u300125\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u30ed\u30fc\u30ab\u30eb\u95a2\u6570\u307f\u305f\u3044\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002 def\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u95a2\u6570\u307f\u305f\u3044\u306a\u3002 \u3044\u3084\u306f\u3084\u3001\u7c21\u6613\u7684\u306b\u95a2\u6570\u3092\u3055\u304f\u3063\u3068\u3064\u304f\u308c\u3066\u3001\u306a\u304b\u306a\u304b\u697d\u3057\u3044\u3067\u3059\u306d\u3002 \u3068\u3053\u308d\u3067\u3001 \u306a\u3093\u3068\u30ea\u30b9\u30c8\u306b\u5165\u308c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002 L\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenmo.hatenadiary.org%2Fentry%2F20050212%2Fp2\" title=\"lambda\u5f0f - \u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30e0\u3081\u3082\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>","author_url":"https://blog.hatena.ne.jp/kenmo/","version":"1.0","provider_url":"https://hatena.blog","url":"https://kenmo.hatenadiary.org/entry/20050212/p2","width":"100%","author_name":"kenmo","height":"190","blog_title":"\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30e0\u3081\u3082\u65e5\u8a18","image_url":null,"blog_url":"https://kenmo.hatenadiary.org/","title":"lambda\u5f0f","type":"rich","provider_name":"Hatena Blog","categories":["Python"]}