src/org/kocakosm/pitaya/collection/Iterables.java
public static <T> Iterable<T> limit(Iterable<? extends T> iterable, int limit)
	{
		return new LimitIterable<T>(iterable, limit);
	}
public static <T> Iterable<T> limit(Iterable<? extends T> iterable, int limit)
	{
		return new LimitIterable<T>(iterable, limit);
	}
Returns an {@code Iterable} view of the given {@code Iterable} that
will only return its first {@code limit} items. The returned view's
{@code Iterator}s support {@link Iterator#remove()} if the original
{@code Iterator} does.

@param <T> the type of the returned {@code Iterable}'s elements.
@param iterable the {@code Iterable} to limit.
@param limit the number of elements in the returned {@code Iterable}.

@return the limited {@code Iterable}.

@throws NullPointerException if {@code iterable} is {@code null}.
@throws IllegalArgumentException if ({@code limit} is negative.