A Tutorial on Ranges

Ali Çehreli wrote a book on D in Turkish. He has been translating it into English chapter-by-chapter. In the newsgroups, he recently posted a link to the English translation of the chapter on ranges.

The topic of ranges is, in my opinion, the single most difficult concept for D newcomers to wrap their heads around. I know I’ve had my fair share of head-scratching moments when functions in std.algorithm or std.range didn’t work the way I expected them to. This chapter definitely goes a long way to reducing them.