How to dispatch by value?

Posted another topic to understand the combinatorial explosion issue:

Thx