collectFrom<A, R> abstract method

R collectFrom<A, R>(
  1. Collector<T, A, R> collector
)

Performs a mutable reduction operation on the elements of this stream using a Collector.

Example

final joined = GenericStream.of(['a', 'b', 'c'])
    .collect(Collectors.joining(', '));

Implementation

R collectFrom<A, R>(Collector<T, A, R> collector);