Standard ML

MLton

Installation

Arch Linux
pacman -S mlton

Examples

Fibonacci Numbers
(* Fibonacci Numbers *)
fun fib n =
    if n < 2 then
        n
    else
        fib(n - 2) + fib(n - 1)

val n = valOf(Int.fromString(List.nth(CommandLine.arguments(), 0)));
print (Int.toString(fib(n)));

(*
    example
        mlton fib.sml
        ./fib 
*)