step

fun step(vararg expressions: Expression): Expression

Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The input may be any numeric expression (e.g., ["get", "population"]). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first output if the input is less than the first stop.

fun step(block: Expression.ExpressionBuilder.() -> Unit): Expression

DSL function for "step".