return ImmutableArrayStack.newStackFromTopToBottom(this.delegate.asReversed().collect(function));
}
public ImmutableBooleanStack collectBoolean(final BooleanFunction<? super T> booleanFunction)
{
final BooleanArrayStack result = new BooleanArrayStack();
this.delegate.forEach(new Procedure<T>()
{
public void value(T each)
{
result.push(booleanFunction.booleanValueOf(each));
}
});
return result.toImmutable();
}