fulcrumapp / fulcrum-expressions

Fulcrum expressions engine
http://developer.fulcrumapp.com/expressions/intro/
5 stars 0 forks source link

AVERAGE isn't very useful as-is #17

Closed zhm closed 8 years ago

zhm commented 8 years ago

The AVERAGE should accept a single array parameter in addition to variadic arguments.

The following should return the identical value:

AVERAGE(1, 2, 3);

AVERAGE([1, 2, 3]);

Currently the 2nd form doesn't work, which makes AVERAGE(REPEATABLEVALUES(...)) confusingly return NaN.

zhm commented 8 years ago

This was fixed in 4feb0c12b95c2578efcac52be6cec1460f1e7a1d and that patch also includes several other usability improvements to commonly used functions.