Formatted output of range of tuples

antropod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 8 15:12:34 PDT 2014


On Wednesday, 8 October 2014 at 21:34:54 UTC, anonymous wrote:
>
> You can turn the tuples into ranges with `only`:
>
> writef("%(%(%s %)\n%)", zip(indexes, source).map!(t =>
> only(t.expand)));

That works for me, thanks.

By the way my compiler is DMD 2.066.0


More information about the Digitalmars-d-learn mailing list