ThenBranch
Namespace: Polars.FSharp
Intermediate F# state holder representing accumulated conditional branches.
Instance Methods
Otherwise
Terminal operator that provides the fallback expression and compiles the ternary tree.
Terminal operator that provides a default fallback scalar value resolved via SRTP.
fsharp
member Otherwise(fallback: Expr) : Expr
member Otherwise(value: 'T) : ExprParameters
| Name | Type | Description |
|---|---|---|
fallback | Expr | The fallback expression if all conditions evaluate to false. |
value | 'T | - |
Returns: Compiled ternary expression.
Otherwise$W
fsharp
member Otherwise$W(op_Dollar: (LitMechanism -> ('T -> Expr)), value: 'T) : ExprParameters
| Name | Type | Description |
|---|---|---|
op_Dollar | (LitMechanism -> ('T -> Expr)) | - |
value | 'T | - |
When
Chains an additional conditional branch.
fsharp
member When(condition: Expr) : WhenConditionParameters
| Name | Type | Description |
|---|---|---|
condition | Expr | Condition expression for the next branch. |
Returns: A WhenCondition state holder awaiting the next statement.