Created
March 26, 2012 00:46
-
-
Save bleis-tift/2201919 to your computer and use it in GitHub Desktop.
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
_require "basis.smi" |
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
fun fib 0 = 1 | |
| fib n = n * fib (n - 1); | |
val fin = fib 20; | |
val print_int = _import "printf": (string, int) -> int; | |
print_int ("%d\n", fin); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment