public void forEach(Closure closure) { for (Iterator iterator = iterator(); iterator.hasNext(); ) { closure.execute(iterator.next()); } }