Regan Heath wrote: > You've also got std.ascii.digits which is "0123456789" and > std.string.digits which is an alias of it, so you can say: > > import std.ascii; (or std.string) > > int x = 5; > char c = std.ascii.digits[x]; >
I used similar solution to bearophile's before. I must admit i did not know about std.ascii.digits[], thanks for the info Regan.
