anonymous:

You can turn the tuples into ranges with `only`:

writef("%(%(%s %)\n%)", zip(indexes, source).map!(t => only(t.expand)));

This is a nice idea. Expand can probably be replaced by a []. I presume this works only if the types inside the tuple are the same.

Bye,
bearophile

Reply via email to