Needs pythonizing of course but I like the flexibility.<div><br><br><div class="gmail_quote"><div dir="ltr">----- <br></div><br><br><div class="gmail_forwarded">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><a href="https://msdn.microsoft.com/visualfsharpdocs/conceptual/pattern-matching-%5bfsharp%5d" target="_blank">https://msdn.microsoft.com/visualfsharpdocs/conceptual/pattern-matching-%5bfsharp%5d</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div>
</div>
</div></div></div>