Skip to content

Instantly share code, notes, and snippets.

@cohalz
Created January 19, 2014 14:22
Show Gist options
  • Save cohalz/8505616 to your computer and use it in GitHub Desktop.
Save cohalz/8505616 to your computer and use it in GitHub Desktop.
let rec iterpow(i,res,x,n) =
if i > n then res else iterpow(i+1,res *. x,x,n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment