Diagnostics
T427
invalid lambda parameter list
T427
Zero-parameter lambdas do not exist. Map and filter lambdas take exactly one parameter, and reduce lambdas take an accumulator plus an element, with distinct names. Adjust the parameter list to the operation's shape.
Failing example
script "conf"
data chart = subscribe(data.ohlcv)
state xs: float[] = float[](4)
on chart.update {
let ys = xs.map(|a, b| a + b)
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
state xs: float[] = float[](4)
on chart.update {
let ys = xs.map(|a| a + 1.0)
}