src/Tools/SML/factorial.sml
author haftmann
Thu, 02 Jul 2020 12:10:58 +0000
changeset 71989 bad75618fb82
parent 56276 9e2d5e3debd3
permissions -rw-r--r--
extraction of equations x = t from premises beneath meta-all

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

factorial 10;
factorial 100;
factorial 1000;