{"blog_title":"...ing logging 4.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20061203%2F1165172383\" title=\" std.bind - ...ing logging 4.0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["D\u8a00\u8a9e","Memo"],"title":" std.bind","type":"rich","version":"1.0","blog_url":"https://haru-s.hatenablog.com/","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/haru-s/","provider_name":"Hatena Blog","width":"100%","author_name":"haru-s","description":"\u7df4\u7fd2\u7df4\u7fd2\u3063\u3068\uff0e import std.bind, std.stdio, std.process; bool less(T)(T a, T b) { return a < b; } void main() { writefln(\"10 < 20 =? \", less(10, 20)); auto less10 = bind(&less!(int), _0, 10); writefln(\" 5 < 10 =? \", less10(5)); writefln(\"20 < 10 =? \", less10(20)); auto greater10 = bindAlias!(less!(int))(10,\u2026","url":"https://haru-s.hatenablog.com/entry/20061203/1165172383","published":"2006-12-03 03:59:43","image_url":null,"height":"190"}