src/Tools/SML/factorial.sml
author blanchet
Thu, 20 Nov 2014 17:29:18 +0100
changeset 59018 ec8ea2465d2a
parent 56276 9e2d5e3debd3
permissions -rw-r--r--
set right logic for CVC4 with (co)datatypes

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

factorial 10;
factorial 100;
factorial 1000;