testing1/collatz.scala
changeset 197 c3e39fdeea3b
parent 171 4c9497ab5caa
child 199 54befaf23648
--- a/testing1/collatz.scala	Mon Nov 05 16:05:27 2018 +0000
+++ b/testing1/collatz.scala	Wed Nov 07 11:59:16 2018 +0000
@@ -21,9 +21,5 @@
 }
 
 
-def Collat(n: Long, r: Int = 1) : Int = 
-  if (n == 1) r else
-   if (n % 2 == 0) Collat(n / 2 , r + 1) else
-     Collat (3 * n + 1 , r + 1)
 
 (1 to 10).map(collatz(_))