Created
October 7, 2013 22:01
-
-
Save misterspeedy/6875681 to your computer and use it in GitHub Desktop.
Partial active pattern for Four of a Kind
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (|FourOfAKind|_|) (hand : Hand) = | |
if (RankCounts hand.Cards).[0] = 4 then | |
FourOfAKind |> Some | |
else | |
None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment