*/
public static <T> MutableLongCollection collectLong(
Iterator<T> iterator,
LongFunction<? super T> longFunction)
{
MutableLongCollection result = new LongArrayList();
while (iterator.hasNext())
{
result.add(longFunction.longValueOf(iterator.next()));
}
return result;
}