*/
public static <T> MutableCharCollection collectChar(
Iterator<T> iterator,
CharFunction<? super T> charFunction)
{
MutableCharCollection result = new CharArrayList();
while (iterator.hasNext())
{
result.add(charFunction.charValueOf(iterator.next()));
}
return result;
}