Too complicated code for generating a random string?
bearophile
bearophileHUGS at lycos.com
Sat Feb 23 04:17:42 PST 2013
Jens Mueller:
>> table!(() => letters.choice)(3, 4, 5).writeln;
>
> This looks almost like a Cartesian product but only specifying
> the sizes.
table() also takes a function, so it's closer to a map() or to
minimallyInitializedArray() than to a Cartesian product :-)
> I assume you have an enhancement request? Couldn't find it.
I think I don't have an enhancement request on table().
Bye,
bearophile
More information about the Digitalmars-d
mailing list