コンパイラに話しかけてるんじゃないんだから関数名にはモジュールまで付けた方が伝わりやすいとおもいます!
きっと std.algorithm.makeIndex と std.stdio.write のこと