From c4f28682d376be8da428c1a2daecc8e7e8beab7e Mon Sep 17 00:00:00 2001 From: Jack Stouffer Date: Mon, 20 Jun 2016 10:10:51 -0400 Subject: [PATCH] Improved docs for std.range.stride --- std/range/package.d | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/std/range/package.d b/std/range/package.d index e7d5e7a4df1..2bae585a121 100644 --- a/std/range/package.d +++ b/std/range/package.d @@ -429,6 +429,15 @@ random-access range, moves by indexing into the range; otherwise, moves by successive calls to $(D popFront). Applying stride twice to the same range results in a stride with a step that is the product of the two applications. It is an error for $(D n) to be 0. + +Params: + r = the input range to stride over + n = the number of elements to skip over + +Returns: + At minimum, an input range. The resulting range will adopt the + range primitives of the underlying range as long as + $(REF, hasLength, std,range,primitives) is `true`. */ auto stride(Range)(Range r, size_t n) if (isInputRange!(Unqual!Range))