Formatted output of range of tuples
    bearophile via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Oct  8 14:31:40 PDT 2014
    
    
  
antropod:
> Looks fairly straightforward. But, the second function causes 
> compilation error:
>
> std.format.FormatException at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(2
> 585): Expected '%s' format specifier for type 'Tuple!(uint, 
> uint)'
>
> Can you help me with that?
Currently the "%(%s%)" formatting doesn't support tuples as 
sequences of values.
For indexes now there is also "enumerate".
Bye,
bearophile
    
    
More information about the Digitalmars-d-learn
mailing list