collect_ordered


Description:

public Future<R> collect_ordered<R,A> (Collector<R,A,G> collector)

Performs a mutable reduction operation on the elements of this seq.

This operation preserves encounter order even though the seq is in parallel mode, if the collector is not CONCURRENT or not UNORDERED. If the seq is in parallel mode and the collector is CONCURRENT and UNORDERED, performs an unordered concurrent reduction.

This is a terminal operation.

Parameters:

collector

the collector describing the reduction

Returns:

a future of the result of the reduction

See also:

Collector