Leaf
utils.Leaf
case class Leaf[Ctx, Res](action: Ctx => Res) extends DecisionTree[Ctx, Res]
Represents a leaf node in the decision tree.
A Leaf node is a terminal point in the tree, directly providing a result based on an associated action function without further branching.
Type parameters
- Ctx
-
The context type.
- Res
-
The result type.
Value parameters
- action
-
A function that takes the context and produces the final result for this leaf.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article