code: func (queue *queue) ForEach(process func(interface{})) {
  	for i := queue.start; i < queue.end; i++ {
  		process(queue.elements[i%int64(queue.cap)])
  	}
  }
docs: // ForEach calls process for each element in the queue.