Interface StreamableArbitrary<T,​U>

    • Method Detail

      • reduce

        <R> Arbitrary<R> reduce​(R initial,
                                java.util.function.BiFunction<R,​T,​R> accumulator)
        Given an initial argument use accumulator to produce the final result.
        Type Parameters:
        R - The result type
        Parameters:
        initial - The initial argument. Also the result if streamable is empty
        accumulator - The function used to reduce a streamable into a result one by one
        Returns:
        The result of accumulating all elements in streamable