Reversing a string

AndreasDavour andreas.davour at protonmail.ch
Fri Jan 11 13:41:51 UTC 2019


On Friday, 11 January 2019 at 11:15:05 UTC, Mike James wrote:
> On Friday, 11 January 2019 at 09:41:30 UTC, bauss wrote:
>> On Friday, 11 January 2019 at 08:25:41 UTC, Seb wrote:
>>> On Friday, 11 January 2019 at 08:05:39 UTC, AndreasDavour 
>>> wrote:
>>>> Hi.
>>>>
>>>> I've just started to learn some D, so maybe this question is 
>>>> extremely stupid, but please bear with me.
>>>>
>>>> [...]
>>>
>>> Use .retro - it is also lazy and won't allocate:
>>>
>>> https://run.dlang.io/is/A6bjrC
>>
>> What a terrible name.
>
> Check out the origin :-)
>
> https://forum.dlang.org/thread/hl8345$2b1q$1@digitalmars.com?page=1
>
>
> -=mike=-


Look at that.

Incidentally, I kind of like "foreach(i; 99 .. 0 : -1)".


More information about the Digitalmars-d-learn mailing list