{"description":"delegate Perl\u306e\u3088\u3046\u306b\u3001 @a = sort { $a->[1] $b->[1] } @a;\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u95a2\u6570\u3092\u5f15\u6570\u306b\u4f7f\u3044\u305f\u304b\u3063\u305f\u306e\u3060\u304c\u3001 \u306a\u305c\u304bD\u306e\u914d\u5217\u306esort\u3067\u306f\u305d\u308c\u304c\u3067\u304d\u306a\u3044\u306e\u3060\u3063\u305f\u3002 \u3057\u304b\u3057\u3001sort\u81ea\u4f5c\u3059\u308c\u3070\u305d\u308c\u304c\u3067\u304d\u308b\u3002 delegate\u306f\u95a2\u6570\u307f\u305f\u3044\u306a\u3082\u306e\u3067\u3001 \u3042\u307e\u308a\u9762\u767d\u304f\u306f\u306a\u3044\u304c\u3001\u3053\u3093\u306a\u4f8b\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 import std.cstream;void main(char[][] arg) { int b = 3; bool less(int c) { return c print(2, &less); // true print(4, &less); // fals\u2026","height":"190","image_url":null,"title":"Perl\u306e\u4ee3\u66ff\u3068\u3057\u3066\uff087\uff09","categories":["D\u8a00\u8a9e"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20070914%2Fp1\" title=\"Perl\u306e\u4ee3\u66ff\u3068\u3057\u3066\uff087\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","url":"https://inamori.hateblo.jp/entry/20070914/p1","author_url":"https://blog.hatena.ne.jp/inamori/","published":"2007-09-14 00:00:00","blog_title":"inamori\u2019s diary","provider_url":"https://hatena.blog","type":"rich","width":"100%","blog_url":"https://inamori.hateblo.jp/","version":"1.0","author_name":"inamori"}