#include main(args) { if (args.length < 2) { "usage: test <n>, where n is the number of list elements to build\n"; return; } local limit = toInteger(args[2]); local tot = 0; for (local i = 1 ; i < limit ; ++i) tot += stringOf(i).length(); "Number of elements: <> \nTotal combined string length: <> \nTotal with TADS 2 list overhead: <>\n"; } stringOf(i) { local rv = ''; while (--i > 0) rv += toString(i); return rv; }