diff -r 437e4f8d35d8 -r 6ad0f63e1968 handouts/amm-ho.tex --- a/handouts/amm-ho.tex Thu Sep 21 16:32:46 2023 +0100 +++ b/handouts/amm-ho.tex Fri Sep 22 13:48:48 2023 +0100 @@ -17,7 +17,7 @@ language you like, but I will show you all my code using Scala---I hope you have fond memories of Scala from PEP. The only difference with PEP is that I will use the current -stable version of Scala, which at teh time of writing is Scala 3.3.1. +stable version of Scala, which at the time of writing is Scala 3.3.1. \begin{tcolorbox}[colback=red!5!white,colframe=red!75!black] If you intend to submit your code for the CW in Scala, you \underline{MUST} submit code that @@ -72,6 +72,8 @@ \end{lstlisting} %% $ \noindent +This creates a file \code{amm} which before it can be run might +need some adjustments of the permissions. The big advantage of Ammonite is that it comes with some additional libraries already built-in and also allows one to easily break up code into smaller modules. For example reading and writing files in @@ -150,17 +152,14 @@ \noindent Of course this requires that you use \texttt{println} for inspecting any data as otherwise nothing will be displayed at the commandline. -\bigskip +\smallskip \noindent To sum up, Ammonite is a really useful addition to the Scala ecosystem. You can find more information about how to use it in the first five chapters of the ``Hands-on Scala'' book by Li Haoyi. These chapters are -free and can be used as a reference, see: +free and can be used as a reference, see \url{https://www.handsonscala.com/part-i-introduction-to-scala.html} -\begin{center} -\url{https://www.handsonscala.com/part-i-introduction-to-scala.html} -\end{center} \end{document}