public static void apply(Collection coll,Function func){
  for (Iterator i=coll.iterator(); i.hasNext(); ) {
    func.execute(i.next());
  }
}

public static void apply ( Collection coll , Function func ) { for ( Iterator i = coll . iterator ( ) ; i . hasNext ( ) ; ) { func . execute ( i . next ( ) ) ; } }
executes a function on each item in a collection but does not accumulate the result
