FoldScorable<Item,Score> Class
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 aggregation of scorables to produce a winning scorable.
public abstract class FoldScorable<Item,Score> : Microsoft.Bot.Builder.Scorables.Internals.ScorableBase<Item,System.Collections.Generic.IReadOnlyList<Microsoft.Bot.Builder.Scorables.Internals.FoldScorable<Item,Score>.State>,Score>
type FoldScorable<'Item, 'Score> = class
inherit ScorableBase<'Item, IReadOnlyList<FoldScorable<'Item, 'Score>.State>, 'Score>
Public MustInherit Class FoldScorable(Of Item, Score)
Inherits ScorableBase(Of Item, IReadOnlyList(Of FoldScorable(Of Item, Score).State), Score)
Type Parameters
- Item
- Score
- Inheritance
-
FoldScorable<Item,Score>
- Derived
Remarks
Fold aka "reduce, accumulate, aggregate, compress, or inject" https://en.wikipedia.org/wiki/Fold_(higher-order_function)
Constructors
FoldScorable<Item,Score>(IComparer<Score>, IEnumerable<IScorable<Item,Score>>) |
Fields
comparer | |
scorables |
Properties
OnStage |
Event handler for fold scorable stages. |
Methods
Explicit Interface Implementations
Extension Methods
SelectItem<SourceItem,TargetItem,Score>(IScorable<TargetItem,Score>, Func<SourceItem,TargetItem>) |
Project the item of a scorable using a lambda expression. |
SelectScore<Item,SourceScore,TargetScore>(IScorable<Item,SourceScore>, Func<Item,SourceScore,TargetScore>) |
Project the score of a scorable using a lambda expression. |
TryPostAsync<Item,Score>(IScorable<Item,Score>, Item, CancellationToken) |
Invoke the scorable calling protocol against a single scorable. |
WhereScore<Item,Score>(IScorable<Item,Score>, Func<Item,Score,Boolean>) |