3 ms·F# actually does have a good solution for pattern matching here, which is Active Patterns.by greener_grass 2y agoF# actually does have a good solution for pattern matching here, which is Active Patterns.