Java Collections.scanRight Examples

Java Collections.scanRight - 2 examples found. These are the top rated real world Java examples of java.util.Collections.scanRight extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
0
 @Override
 default <U> Seq<U> scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) {
   Objects.requireNonNull(operation, "operation is null");
   return Collections.scanRight(
       this, zero, operation, List.empty(), List::prepend, Function.identity());
 }
Example #2
0
 @Override
 public <U> Array<U> scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) {
   Objects.requireNonNull(operation, "operation is null");
   return Collections.scanRight(
       this, zero, operation, List.empty(), List::prepend, list -> Array.wrap(list.toJavaArray()));
 }