src/org/kocakosm/pitaya/collection/Iterables.java
public static <T> Bag<T> toBag(Iterable<? extends T> iterable)
	{
		return new ArrayBag<T>(iterable);
	}
public static <T> Bag<T> toBag(Iterable<? extends T> iterable)
	{
		return new ArrayBag<T>(iterable);
	}
Returns a {@code Bag} containing all the given {@code Iterable}'s
elements. The returned {@code Bag} has the same iteration order as
the source {@code Iterable}.

@param <T> the type of the returned {@code Bag}'s elements.
@param iterable the source {@code Iterable}.

@return the {@code Bag} created from the given {@code Iterable}.

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