It does not show the result of A which is val[0].
It shows 1 because val[1] contains the value of the embedded action in this case.