www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: The new, new phobos sneak preview

bearophile Wrote:

 writefln("[%(s; )]", [1, 2, 3][]) writes "[1; 2; 3]"

Most times you don't want to change the separator. For the uncommon

why separator? i just want to see ubyte[] in hex writefln("[%(02X )]", [127,128,129]) //should be "[7F 80 81]"
Apr 09 2009