Scorable.Fold<Item,Score> 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.
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>