Adam Ruppe Wrote:

> Steven Schveighoffer wrote:
> > It does help, but I was kind of hoping for something that shows the
> > structure.
> 
> Those relationships are in the HTML too.... try it now:
> http://arsdnet.net/d-web-site/std_algorithm.html
> 
> (I know it needs some work still, I'm just sick of Javascript after
> spending 20 minutes tracking down a bug caused by me using the
> same variable name twice! Gah! And wow do I miss foreach.)

var foo = [bar, baz];
foo.forEach(function (elem) { 
    elem.doSomthing(); 
});

Available since version 1.6

Reply via email to