| changeset 98 | 44a20e85dd38 |
| parent 95 | 4fa7231fede7 |
| child 147 | 3e5d8657302f |
--- a/progs/lecture2.scala Wed Jan 11 14:41:32 2017 +0000 +++ b/progs/lecture2.scala Wed Jan 11 14:42:46 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))