Skip to content

Commit

Permalink
Merge pull request #4445 from JackStouffer/patch-10
Browse files Browse the repository at this point in the history
Improved docs for std.range.stride
  • Loading branch information
burner committed Jun 20, 2016
2 parents f29208b + c4f2868 commit 77c8df6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions std/range/package.d
Expand Up @@ -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))
Expand Down

0 comments on commit 77c8df6

Please sign in to comment.