Use foreach instead of using std.range and std.algorithm.