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

Uknown sireeshkodali1 at gmail.com
Wed Jun 27 15:57:51 UTC 2018


On Wednesday, 27 June 2018 at 15:18:05 UTC, Alex wrote:
> On Wednesday, 27 June 2018 at 15:07:57 UTC, Uknown wrote:
>> On Wednesday, 27 June 2018 at 14:50:25 UTC, Alex wrote:
>>> On Wednesday, 27 June 2018 at 14:29:33 UTC, Uknown wrote:
>>>> On Wednesday, 27 June 2018 at 14:21:39 UTC, Alex wrote:
>>>>> On Wednesday, 27 June 2018 at 13:27:46 UTC, Uknown wrote:
>>>>>> [...]
> This would:
>
> ["123".byCodeUnit.permutations].joiner.writeln;

Thanks. This works, but it still seems silly that permutations 
doesn't just return a range with front returning the original type


More information about the Digitalmars-d-learn mailing list