joiner and map, strange behavior

lomereiter lomereiter at gmail.com
Tue Mar 12 13:19:52 PDT 2013


Current implementation of joiner accesses each element two times 
- first, in a loop which skips empty ranges, plus after the loop 
assignment to a variable occurs:

https://github.com/D-Programming-Language/phobos/blob/master/std/algorithm.d#L2993

On Tuesday, 12 March 2013 at 17:51:57 UTC, Stephan Schiffels 
wrote:
> 
>> Thanks, I had a brief look at std.algorithm.joiner but couldn't
> find anything obvious, maybe I should look deeper into it.
>


More information about the Digitalmars-d-learn mailing list