On Wednesday, 16 January 2013 at 14:05:03 UTC, bearophile wrote:
Mathematica and NumPy on default shorten the output if it's too much large, and show it all on request. What I forgot to say in my first post is that in D it's probably better to have those conditions swapped, this means printing all on default, and adding a way to produce a shorter output on request.

A format specifier like this, then, adding width and/or "precision" to "%(":

writefln("%10.3(%s, %)", iota(10_000));
// Prints: "0, 1, 2, ... 7, 8, 9".

could be useful.

Reply via email to