* Invokes the first element function on each iterator element.
* @param iterator must be an instance of Iterator.
*/
public Iterator iterate(Object iterator, InvocationContext context)
{
return new IteratorWithFunction(iterator, functions.get(0), context);
}