// $Revision: 1.1 $:
var collection = null;

function Iterator(collection) {
  this.collection = collection;
  this.hasNext = hasNext;
  this.next = next;
}

function hasNext() {
  return this.collection != null && this.collection.length > 0;
}

function next() {
  return this.collection.shift();
}

