diff -r d67c5f7177a6 -r 61eb4f9b8d84 progs/lecture4.scala --- a/progs/lecture4.scala Fri Dec 02 07:48:03 2022 +0000 +++ b/progs/lecture4.scala Fri Dec 02 11:05:41 2022 +0000 @@ -280,7 +280,7 @@ // Tail recursion //================ -def fact(n: BigInt): BigInt = +def fact(n: Int): Int = if (n == 0) 1 else n * fact(n - 1)