static <T, R> Accumulator<T, ?, R> of(final Collector<T, ?, R> collector) {
		return new CollectorAccumulator<>(collector);
	}
Create a new accumulator from the given {@code collector}.
{@snippet lang="java":
final Accumulator<Integer, ?, ISeq<Integer>> accu =
    Accumulator.of(ISeq.toISeq());
}

@param collector the collector which is used for accumulation and creation
       the result value.
@param <T> the type of input elements to the reduction operation
@param <R> the result type of the reduction operation
@return a new accumulator which is backed by the given {@code collector}
@throws NullPointerException if the given {@code collector} is {@code null}
jenetics/src/main/java/io/jenetics/util/Accumulator.java