mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 15:40:36 +03:00
Remove extraneous header from std.algorithm.reduce example
This commit is contained in:
parent
e569476df9
commit
d56d317220
1 changed files with 6 additions and 7 deletions
|
@ -855,13 +855,12 @@ unittest
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
$(DDOC_SECTION_H Multiple functions:) Sometimes it is very useful to
|
Sometimes it is very useful to compute multiple aggregates in one pass.
|
||||||
compute multiple aggregates in one pass. One advantage is that the
|
One advantage is that the computation is faster because the looping overhead
|
||||||
computation is faster because the looping overhead is shared. That's
|
is shared. That's why $(D reduce) accepts multiple functions.
|
||||||
why $(D reduce) accepts multiple functions. If two or more functions
|
If two or more functions are passed, $(D reduce) returns a
|
||||||
are passed, $(D reduce) returns a $(XREF typecons, Tuple) object with
|
$(XREF typecons, Tuple) object with one member per passed-in function.
|
||||||
one member per passed-in function. The number of seeds must be
|
The number of seeds must be correspondingly increased.
|
||||||
correspondingly increased.
|
|
||||||
*/
|
*/
|
||||||
unittest
|
unittest
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue