Reversing a string

Seb seb at wilzba.ch
Fri Jan 11 08:25:41 UTC 2019


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


More information about the Digitalmars-d-learn mailing list