H. S. Teoh: > So how would I implement something like this? One option is to wrap those ranges in classes. See std.range for the adapters. (I have not used them yet). Bye, bearophile