stride in slices

Meta jared771 at gmail.com
Sun Jun 3 07:30:56 UTC 2018


On Saturday, 2 June 2018 at 18:49:51 UTC, DigitalDesigns wrote:
> Proposal:
>
> [a..b;m]
>
> m is the stride, if ; is not a good char then |, :, !, or # 
> could be good chars.

This is exactly what std.range.stride does. The syntax [a..b;m] 
directly translates to [a..b].stride(m).


More information about the Digitalmars-d mailing list