mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +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
|
||||
compute multiple aggregates in one pass. One advantage is that the
|
||||
computation is faster because the looping overhead is shared. That's
|
||||
why $(D reduce) accepts multiple functions. If two or more functions
|
||||
are passed, $(D reduce) returns a $(XREF typecons, Tuple) object with
|
||||
one member per passed-in function. The number of seeds must be
|
||||
correspondingly increased.
|
||||
Sometimes it is very useful to compute multiple aggregates in one pass.
|
||||
One advantage is that the computation is faster because the looping overhead
|
||||
is shared. That's why $(D reduce) accepts multiple functions.
|
||||
If two or more functions are passed, $(D reduce) returns a
|
||||
$(XREF typecons, Tuple) object with one member per passed-in function.
|
||||
The number of seeds must be correspondingly increased.
|
||||
*/
|
||||
unittest
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue