Can anybody explain this fomrula

REDUCE(0,H7:H10,LAMBDA(a,b,VSTACK(TAKE(a,1),a+b)))

h7 1
h8 2
h9 3
h10 4

result
0
4
7
9
10

thanks