From d8258dfcbb74b904593e49ba463e875ad59efeda Mon Sep 17 00:00:00 2001 From: Peter Alexander Date: Tue, 16 Oct 2012 17:51:35 +0100 Subject: [PATCH] Map does not cache. Update ddoc. --- std/algorithm.d | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/std/algorithm.d b/std/algorithm.d index f90acf1d2..922183ddc 100644 --- a/std/algorithm.d +++ b/std/algorithm.d @@ -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: ----