Gatherers.Fold(ISupplier, IBiFunction) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Gatherer that performs an ordered, reduction-like, transformation for scenarios where no combiner-function can be implemented, or for reductions which are intrinsically order-dependent.
[Android.Runtime.Register("fold", "(Ljava/util/function/Supplier;Ljava/util/function/BiFunction;)Ljava/util/stream/Gatherer;", "", ApiSince=36)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })]
public static Java.Util.Streams.IGatherer? Fold(Java.Util.Functions.ISupplier? initial, Java.Util.Functions.IBiFunction? folder);
[<Android.Runtime.Register("fold", "(Ljava/util/function/Supplier;Ljava/util/function/BiFunction;)Ljava/util/stream/Gatherer;", "", ApiSince=36)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })>]
static member Fold : Java.Util.Functions.ISupplier * Java.Util.Functions.IBiFunction -> Java.Util.Streams.IGatherer
Parameters
- initial
- ISupplier
the identity value for the fold operation
- folder
- IBiFunction
the folding function
Returns
a new Gatherer
- Attributes
Remarks
Returns a Gatherer that performs an ordered, reduction-like, transformation for scenarios where no combiner-function can be implemented, or for reductions which are intrinsically order-dependent.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.