Maybe I am missing something but I am getting an incorrect result on two excel Lambda functions in a simple test.
One is named xytest():
=LAMBDA(x,y,
IF(x > y,
addy(x,y),
"x=" & x & " < y=" & y)
)
the other is addy():
=LAMBDA(x,y,
xytest(x,(y+1))
)
It should just be recursive until y is greater than x. But when I put in =xytest(8,4)
I get the following result:
x=8 < y=8
I don't know how this is happening because there is no incremental testing, but I wonder if the IF(x > y)
is actually preforming x is greater than or equal to? It should obviously iterate until y=9. I am either seriously confused about how Lambda() works or there is an error in my formulas. Unfortunately, I can't find much technical documentation on Lambda() to try and sort out what's going on.