public class StepperExtensions$mcI$sp extends StepperExtensions<java.lang.Object>
| Constructor and Description |
|---|
StepperExtensions$mcI$sp(scala.collection.Stepper<java.lang.Object> s$mcI$sp) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(scala.Function1<java.lang.Object,java.lang.Object> p)
Consumes all remaining elements in this
Stepper and counts how many satisfy condition p. |
boolean |
exists(scala.Function1<java.lang.Object,java.lang.Object> p)
Searches for an element that satisfies condition
p. |
scala.Option<java.lang.Object> |
find(scala.Function1<java.lang.Object,java.lang.Object> p)
Searches for an element that satisifes condition
p, returning it wrapped in Some if one is found, or None otherwise. |
<B> B |
fold(B zero,
scala.Function2<B,java.lang.Object,B> op)
Repeatedly applies
op to propagate an initial value zero through all elements of the collection. |
<B> B |
foldTo(B zero,
scala.Function2<B,java.lang.Object,B> op,
scala.Function1<B,java.lang.Object> p)
Repeatedly applies
op to propagate an initial value zero through the collection until a condition p is met. |
void |
foreach(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
Applies
f to every remaining element in the collection. |
int |
reduce(scala.Function2<java.lang.Object,java.lang.Object,java.lang.Object> op) |
protected scala.collection.Stepper<java.lang.Object> |
s() |
scala.collection.Stepper<java.lang.Object> |
substep() |
accumulate, countpublic StepperExtensions$mcI$sp(scala.collection.Stepper<java.lang.Object> s$mcI$sp)
public long count(scala.Function1<java.lang.Object,java.lang.Object> p)
StepperExtensionsStepper and counts how many satisfy condition p.
This is a terminal operation.count in class StepperExtensions<java.lang.Object>p - (undocumented)public boolean exists(scala.Function1<java.lang.Object,java.lang.Object> p)
StepperExtensionsp. If none are found, it returns false.
This is a terminal operation.exists in class StepperExtensions<java.lang.Object>p - (undocumented)public scala.Option<java.lang.Object> find(scala.Function1<java.lang.Object,java.lang.Object> p)
StepperExtensionsp, returning it wrapped in Some if one is found, or None otherwise.
This is a terminal operation.find in class StepperExtensions<java.lang.Object>p - (undocumented)public <B> B fold(B zero,
scala.Function2<B,java.lang.Object,B> op)
StepperExtensionsop to propagate an initial value zero through all elements of the collection.
Traversal order is left-to-right.
This is a terminal operation.fold in class StepperExtensions<java.lang.Object>zero - (undocumented)op - (undocumented)public <B> B foldTo(B zero,
scala.Function2<B,java.lang.Object,B> op,
scala.Function1<B,java.lang.Object> p)
StepperExtensionsop to propagate an initial value zero through the collection until a condition p is met.
If p is never met, the result of the last operation is returned.
This is a terminal operation.foldTo in class StepperExtensions<java.lang.Object>zero - (undocumented)op - (undocumented)p - (undocumented)public void foreach(scala.Function1<java.lang.Object,scala.runtime.BoxedUnit> f)
StepperExtensionsf to every remaining element in the collection.
This is a terminal operation.foreach in class StepperExtensions<java.lang.Object>f - (undocumented)public int reduce(scala.Function2<java.lang.Object,java.lang.Object,java.lang.Object> op)
protected scala.collection.Stepper<java.lang.Object> s()
s in class StepperExtensions<java.lang.Object>public scala.collection.Stepper<java.lang.Object> substep()
substep in class StepperExtensions<java.lang.Object>