Too complicated code for generating a random string?

Ary Borenszweig ary at esperanto.org.ar
Fri Feb 22 19:02:47 PST 2013


On 2/22/13 10:07 PM, bearophile wrote:

> That's another commonly useful function, often named table(), similar to
> map() but doesn't pass an index to the callable:
>
> http://reference.wolfram.com/mathematica/ref/Table.html
>
> So it becomes something like:
>
> 10.table!({ return letters.choice; }).writeln;

Couldn't map! be used with a delegate that doesn't receive any arguments?


More information about the Digitalmars-d mailing list