Getting the underlying range from std.range.indexed, with elements in swapped order, when Indexed.source.length == Indexed.indices.length

Alex sascha.orlov at gmail.com
Wed Jun 27 14:21:39 UTC 2018


On Wednesday, 27 June 2018 at 13:27:46 UTC, Uknown wrote:
> Title says it all. Is there a trivial way to do this?

There are
https://dlang.org/library/std/algorithm/mutation/reverse.html
and
https://dlang.org/library/std/range/retro.html

both require a bidirectional range, which Indexed, luckily is.


More information about the Digitalmars-d-learn mailing list