Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Kotlin
for (x in items) doSomething(x)
items.forEach { doSomething(it) }
items.forEach(::doSomething)

Using a function reference.
for Item of Items loop
   Do_Something (Item);
end loop;

New implementation...