Created
November 21, 2012 12:29
-
-
Save adilakhter/4124634 to your computer and use it in GitHub Desktop.
modulo operator
This file contains 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 rec (|%|) a n = | |
match a, n with | |
|_ when a < n -> a | |
|_ when a>=n -> (|%|) (a-n) n | |
//Resulting signature: val ( |%| ) : int -> int -> int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
symbol operator defined using fsharp