Skip to content

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) : Expr

Parameters

NameTypeDescription
fallbackExprThe 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) : Expr

Parameters

NameTypeDescription
op_Dollar(LitMechanism -> ('T -> Expr))-
value'T-

When ​

Chains an additional conditional branch.

fsharp
member When(condition: Expr) : WhenCondition

Parameters

NameTypeDescription
conditionExprCondition expression for the next branch.

Returns: A WhenCondition state holder awaiting the next statement.


Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.