Skip to content

bmel:range-of

Category: Array & Statistics · Returns: bmel:number

Signature
bmel:range-of(array: bmel:array<number>)

Description

Returns the statistical range of an array (max - min). The simplest measure of spread. Equivalent to bmel:max-of(array) - bmel:min-of(array) expressed as a single call.

Arguments

Parameter Type Required Description
array bmel:array<number> The array of numeric values.

Examples

Spread between the slowest and fastest call
bmel:range-of({createChatCompletion:Response Payload[]}.$.latency_ms)
Price range of an order
bmel:range-of({getOrder:Response Payload}.$.items.price)

← Back to BMEL Reference