changeset 95 | 4fa7231fede7 |
parent 77 | 3cbe3d90b77f |
child 147 | 72f7dd1a3754 |
--- a/progs/lecture2.scala Wed Dec 21 03:06:18 2016 +0000 +++ b/progs/lecture2.scala Wed Jan 11 12:18:34 2017 +0000 @@ -348,6 +348,8 @@ // a student showed me... import scala.collection.mutable.ListBuffer + + def collatz_max(bnd: Long): (Long, Long) = { val colNos = ListBuffer[(Long, Long)]() for (i <- (1L to bnd).toList) colNos += ((collatz(i), i))