Created
June 25, 2015 03:27
-
-
Save rrnewton/f69dd5bd06fc92e5fec4 to your computer and use it in GitHub Desktop.
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 rec spower : int -> int code -> int code = | |
fun n x -> | |
if n = 0 then <1> | |
else < ~x * ~(spower (n-1) x) > | |
let spowern n = <fun x -> ~(spower n <x> )> | |
let powExp exp = ! (spowern exp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment