Most languages have something like:
for (ElemType x : collection) {
# use x here
}
or: for (elem : collection) {
// use here
}
for dynamic languages or statically typed ones with lots of inferenceNot sure what you can do with this that:
collections.each(x -> {
// use here
})
can't.