Logic:
{"reduce":[
{"var":"integers"},
{"+":[{"var":"current"}, {"var":"accumulator"}]},
{"var":"start"}
]}
Data:
{
"integers":[1,2,3],
"start": 10
}
I would expect this to return 16, instead it returns null, because the initial value isn't evaluated and can only be a primitive.
Changing the logic to
{"reduce":[
{"var":"integers"},
{"+":[{"var":"current"}, {"var":"accumulator"}]},
10
]}
makes the expression work as expected.