Precisely.
Smartmatch is easy. (Except when it isn't.)
In reply to Re^2: converting from switch to given-when by tobyink in thread converting from switch to given-when by jmlynesjr