On island Electronic Station:
Apart from my solution, there is a very good solution is involved, from which we can see how to write recursive using lambda.
Besides, a clear use of bit operator is illustrated by this example.
On island Electronic Station:
I write this through lambda recursively.
A good solution with eval is delighting to learn. Maybe you will call it cheat, but WHATEVER...