Skip to content

Instantly share code, notes, and snippets.

@bleis-tift
Created March 26, 2012 00:46
Show Gist options
  • Save bleis-tift/2201919 to your computer and use it in GitHub Desktop.
Save bleis-tift/2201919 to your computer and use it in GitHub Desktop.
_require "basis.smi"
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