Created
May 10, 2015 14:43
-
-
Save vgaltes/e453ddd088beac84791f to your computer and use it in GitHub Desktop.
FSharp Pattern Matching - parametrized active pattern
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 (|DivisibleBy|_|) d n = if n % d = 0 then Some DivisibleBy else None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment