Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Groovy
items.each { x -> doSomething(x) }
for(x in items) doSomething(x)
items.each { doSomething(it) }

If a closure has only one parameter, it can be omitted and defaults to the name it
for Item of Items loop
   Do_Something (Item);
end loop;

New implementation...