Jaa


Chain.Fold<T> Method

Definition

Fold items from an enumeration of dialogs.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Fold<T> (this Microsoft.Bot.Builder.Dialogs.IDialog<System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.IDialog<T>>> antecedent, Func<T,T,T> folder);
static member Fold : Microsoft.Bot.Builder.Dialogs.IDialog<seq<Microsoft.Bot.Builder.Dialogs.IDialog<'T>>> * Func<'T, 'T, 'T> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function Fold(Of T) (antecedent As IDialog(Of IEnumerable(Of IDialog(Of T))), folder As Func(Of T, T, T)) As IDialog(Of T)

Type Parameters

T

The type of the dialogs in the enumeration produced by the antecedent dialog.

Parameters

antecedent
IDialog<IEnumerable<IDialog<T>>>

The antecedent dialog that produces an enumeration of IDialog<TResult>.

folder
Func<T,T,T>

The accumulator for the dialog enumeration.

Returns

IDialog<T>

The accumulated result.

Applies to