Share via


Scorable.Fold<Item,Score> Method

Definition

Fold an enumeration of scorables using a score comparer.

public static Microsoft.Bot.Builder.Scorables.IScorable<Item,Score> Fold<Item,Score> (this System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Scorables.IScorable<Item,Score>> scorables, System.Collections.Generic.IComparer<Score> comparer = default, Microsoft.Bot.Builder.Scorables.Internals.FoldScorable<Item,Score>.OnStageDelegate onStage = default);
static member Fold : seq<Microsoft.Bot.Builder.Scorables.IScorable<'Item, 'Score>> * System.Collections.Generic.IComparer<'Score> * Microsoft.Bot.Builder.Scorables.Internals.FoldScorable<'Item, 'Score>.OnStageDelegate -> Microsoft.Bot.Builder.Scorables.IScorable<'Item, 'Score>
<Extension()>
Public Function Fold(Of Item, Score) (scorables As IEnumerable(Of IScorable(Of Item, Score)), Optional comparer As IComparer(Of Score) = Nothing, Optional onStage As FoldScorable(Of Item, Score).OnStageDelegate = Nothing) As IScorable(Of Item, Score)

Type Parameters

Item
Score

Parameters

scorables
IEnumerable<IScorable<Item,Score>>
comparer
IComparer<Score>

Returns

Applies to