src/org/kocakosm/pitaya/collection/Iterators.java
public static <E> Iterator<E> cycle(E... elements)
	{
		return new CyclicIterator<E>(Arrays.asList(elements));
	}
public static <E> Iterator<E> cycle(E... elements)
	{
		return new CyclicIterator<E>(Arrays.asList(elements));
	}
Returns an {@code Iterator} that cycles indefinitely over the given
elements. The returned {@code Iterator} supports {@link Iterator#remove()}.

@param <E> the type of the returned {@code Iterator}'s elements.
@param elements the elements to cycle over.

@return the cyclic {@code Iterator}.

@throws NullPointerException if {@code elements} is {@code null}.