Print a triangle

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 29 16:41:06 PDT 2016


[snip]

On Friday, 29 April 2016 at 13:20:47 UTC, Michael Coulombe wrote:
> Try this:
>
> iota(1,11).each!(a => writeln("#".replicate(a)))

Yes, this is what I was looking for!

It's my birthday today.



More information about the Digitalmars-d-learn mailing list