Online Course - Advanced Expressions: Part 2

Certified Associate Developer

Hi, everyone.

I'm learning from "Online Course - Advanced Expressions: Part 2".
I have a question about "Exercise: Looping Functions (Online Course | Learning at Appian)".

Exercise: Looping Functions(Online Course | Learning at Appian)

The answer of "Scenario 4" is 1333 (1332 + initial value 1), but adding all the values of "local!sensor" gives 1361.
The last value of 29 in the third map seems to be ignored.

a!localVariables(
 
  local!sensor: 
  {
    a!map(data: {125,92,22,63,73,28,19}),
    a!map(data: {35,65,92,22,63,73,28}),
    a!map(data: {2,35,65,22,63,73,18,29}),
    a!map(data: {9,35,65,63,35,28,19})
  },
....

....
  reduce(fn!sum, 1, local!sensor.data)

  
 )

Is the answer 1333 correct?
Is this behavior by design?

Regards!

  Discussion posts and replies are publicly visible