4 ms·Yes, this is exactly how you do it, with pattern matching & guards!by lsllc 5y agoYes, this is exactly how you do it, with pattern matching & guards!