fixed issue 15683

This commit is contained in:
Basile Burg 2016-02-15 06:08:07 +01:00
parent 84600a2265
commit c871ab44cc

View file

@ -200,7 +200,7 @@ Tip: $(D cache) is eager when evaluating elements. If calling front on the
underlying range has a side effect, it will be observeable before calling underlying range has a side effect, it will be observeable before calling
front on the actual cached range. front on the actual cached range.
Furtermore, care should be taken composing $(D cache) with $(XREF range,take). Furtermore, care should be taken composing $(D cache) with $(XREF _range,take).
By placing $(D take) before $(D cache), then $(D cache) will be "aware" By placing $(D take) before $(D cache), then $(D cache) will be "aware"
of when the range ends, and correctly stop caching elements when needed. of when the range ends, and correctly stop caching elements when needed.
If calling front has no side effect though, placing $(D take) after $(D cache) If calling front has no side effect though, placing $(D take) after $(D cache)