Ranges: How to take N last of elements of range

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 25 21:31:59 PST 2015


On Friday, 25 December 2015 at 20:06:04 UTC, drug wrote:
> 25.12.2015 17:13, Ur at nuz пишет:
>>      [...]
> You can do following http://dpaste.dzfl.pl/41c57f89a5a0
> The reason of compile error is your using a range as a 
> separator, change it to single symbol and it works. Also I used 
> 'array' after 'take' to make range bidirectional to let next 
> 'retro' works. And 'join' joins result to string with '.' as a 
> separator.

Thanks for reply. This is useful


More information about the Digitalmars-d-learn mailing list