src/Tools/SML/factorial.sml
author wenzelm
Mon, 21 Jul 2014 16:58:12 +0200
changeset 57593 2f7d91242b99
parent 56276 9e2d5e3debd3
permissions -rw-r--r--
proper Swing buttons instead of active areas within text (by Lars Hupel);

fun factorial 0 = 1
  | factorial n = n * factorial (n - 1);

factorial 10;
factorial 100;
factorial 1000;