Mercurial > projects > ldc
view test/foreach1.d @ 255:4d14a1c84be7 trunk
[svn r272] some rough html statistics for the tests
author | ChristianK |
---|---|
date | Thu, 12 Jun 2008 18:19:54 +0200 |
parents | bc641b23a714 |
children | d9d5d59873d8 |
line wrap: on
line source
module foreach1; import std.stdio; void main() { static arr = [1,2,3,4,5]; writef("forward"); foreach(v;arr) { writef(' ',v); } writef("\nreverse"); foreach_reverse(v;arr) { writef(' ',v); } writef("\n"); }