*/
public static <T> MutableIntCollection collectInt(
Iterator<T> iterator,
IntFunction<? super T> intFunction)
{
MutableIntCollection result = new IntArrayList();
while (iterator.hasNext())
{
result.add(intFunction.intValueOf(iterator.next()));
}
return result;
}