mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 00:54:05 +03:00
Add Params: and Returns: to cartesianProduct docs.
This commit is contained in:
parent
88fc63d8d3
commit
7acb9eac80
1 changed files with 10 additions and 0 deletions
|
@ -66,6 +66,16 @@ If both ranges are infinite, then both must be forward ranges.
|
||||||
|
|
||||||
When there are more than two ranges, the above conditions apply to each
|
When there are more than two ranges, the above conditions apply to each
|
||||||
adjacent pair of ranges.
|
adjacent pair of ranges.
|
||||||
|
|
||||||
|
Params:
|
||||||
|
range1 = The first range
|
||||||
|
range2 = The second range
|
||||||
|
ranges = Two or more non-infinite forward ranges
|
||||||
|
otherRanges = Zero or more non-infinite forward ranges
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
A forward range of $(XREF typecons,Tuple) representing elements of the
|
||||||
|
cartesian product of the given ranges.
|
||||||
*/
|
*/
|
||||||
auto cartesianProduct(R1, R2)(R1 range1, R2 range2)
|
auto cartesianProduct(R1, R2)(R1 range1, R2 range2)
|
||||||
if (!allSatisfy!(isForwardRange, R1, R2) ||
|
if (!allSatisfy!(isForwardRange, R1, R2) ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue