2006-10-09から1日間の記事一覧
23:15 (niha) template rest(char s : ""){ const rest = ""; }はダメで 23:15 (niha) template rest(char s : ""){ const rest = s; }はいいらしいです… 23:18 (she) ホントですね 23:19 (she) そもそも const hoge = "" がダメなのでは 23:19 (she) 違った…
以前の話の続きのような物です。誰も続けてくれないので自分で続けます。 今日は高階関数のお勉強をしましょう。 始めは勿論、皆さんご存知「map」です。 template map(alias f, char[] s){ const char[] map = f!(head!(s)) ~ map!(f, rest!(s)); } templat…