kumulant

SwitchCase

@Serializable
@SerialName(value = "SwitchCase")
data class SwitchCase(val value: Double, val then: ScalarExpr)(source)

One case of a Switch expression: when on evaluates to value (exact equality), the result is then. Exact double equality is fine for integer-valued keys like VIndex; not recommended for general continuous comparisons.

Constructors

Link copied to clipboard
constructor(value: Double, then: ScalarExpr)

Properties

Link copied to clipboard

Expression evaluated when this case is selected.

Link copied to clipboard

Value of the switch key that selects this branch.

SwitchCase

constructor(value: Double, then: ScalarExpr)(source)

then

Expression evaluated when this case is selected.

value

Value of the switch key that selects this branch.