On 6/11/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote: > I wouldn't know how to translate that to D though. Found Phillipe's implementation. Cut from dranges.algorithm: http://pastebin.com/26s7wNYJ There's a github clone here: https://github.com/dawgfoto/dranges Problem solved for now. :)