Ali Çehreli: > The documentation of indexed() says: "Source must be a random access > range. The returned range will be bidirectional or random-access if > Indices is bidirectional or random-access, respectively."
> Because idxSet is not RandomAccessRange, indexed() does not provide > opIndex() and doesn't match sort()'s requirement. You are right, I understand, thank you. > It's unfortunate that template the error messages cannot be more > helpful. :-/ In my opinion here it's also a matter of documentation about the kind of range needed for Indices. Bye, bearophile