$ cd ~ $ mkdir sml
$ cp ./install/SML/*.tar.Z ./sml/ $ cd sml
$ tar zxf config.tar.Z
$ ./config/install.sh
bash-2.03$ ./bin/sml Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM; autoload enabled] - fun fact x = if x=0 then 1 else x*fact(x-1); val fact = fn : int -> int - map fact [7,8,9,10,11,12]; val it = [5040,40320,362880,3628800,39916800,479001600] : int list - fact(13); uncaught exception overflow raised at:
Last Update: 2005.06.12 |
H.Nakao |