diff -r 8fb3b6d3be70 -r 81ee93b87258 progs/while-arrays/compile_arrays2.sc --- a/progs/while-arrays/compile_arrays2.sc Thu Jan 20 08:58:38 2022 +0000 +++ b/progs/while-arrays/compile_arrays2.sc Mon Jan 24 00:00:33 2022 +0000 @@ -231,7 +231,14 @@ // java arr/arr // automating the above -import ammonite.ops._ + +// pre-2.5.0 ammonite +// import ammonite.ops._ + +// post 2.5.0 ammonite +import $ivy.`com.lihaoyi::os-lib:0.8.0` +import os._ + def compile_to_file(bl: Block, class_name: String) : Unit = write.over(pwd / s"$class_name.j", compile(bl, class_name))