join of range of ranges?
    bearophile 
    bearophileHUGS at lycos.com
       
    Sun Sep 22 10:49:08 PDT 2013
    
    
  
David Nadlinger:
> std.algorithm.joiner, or am I missing something?
Something like this? (It doesn't work yet):
import std.algorithm: map, joiner;
import std.array: join, array;
import std.string: text;
void main() {
     string r1 = [1, 2]
                 .map!(x => [1, 2].map!(y => '*').array)
                 .join("_");
     string r2 = [1, 2]
                 .map!(x => [1, 2].map!(y => '*'))
                 .joiner("_")
                 .text;
}
Bye,
bearophile
    
    
More information about the Digitalmars-d-learn
mailing list