import std.stdio, std.range; void main() { string s = "hoge"; for(auto _r = std.range.retro(s); _r.length() != 0; _r.popFront()) { writeln(_r.front()); } writeln(s); }
e g o h hoge
あれ!? 逆順? 俺はどこを勘違いしているのだろう(dmd 2.030).
追記
ああ,なんだ.retroは逆順のrangeなんだっけ.
意図したようなrangeは必要なくてないのかな.