mirror of
https://github.com/dlang/phobos.git
synced 2025-05-02 08:00:48 +03:00
Merge pull request #876 from Poita/mapdoc
std.algorithm.map does not cache front. Update ddoc.
This commit is contained in:
commit
56ab2c3492
1 changed files with 1 additions and 3 deletions
|
@ -332,9 +332,7 @@ Implements the homonym function (also known as $(D transform)) present
|
|||
in many languages of functional flavor. The call $(D map!(fun)(range))
|
||||
returns a range of which elements are obtained by applying $(D fun(x))
|
||||
left to right for all $(D x) in $(D range). The original ranges are
|
||||
not changed. Evaluation is done lazily. The range returned by $(D map)
|
||||
caches the last value such that evaluating $(D front) multiple times
|
||||
does not result in multiple calls to $(D fun).
|
||||
not changed. Evaluation is done lazily.
|
||||
|
||||
Example:
|
||||
----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue