public ImmutableShortList collectShort(ShortFunction<? super V> shortFunction)
{
ShortArrayList result = new ShortArrayList(this.size());
this.forEach(new CollectShortProcedure<V>(shortFunction, result));
return result.toImmutable();
}
public <K2, V2> ImmutableMap<K2, V2> collect(Function2<? super K, ? super V, Pair<K2, V2>> function)
{
return MapIterate.collect(this, function, UnifiedMap.<K2, V2>newMap()).toImmutable();