diff -r 91b9b361e0f0 -r 636ad159b4eb handouts/amm-ho.tex --- a/handouts/amm-ho.tex Fri Sep 18 00:34:47 2020 +0100 +++ b/handouts/amm-ho.tex Mon Sep 21 10:44:48 2020 +0100 @@ -45,11 +45,12 @@ \noindent Ammonite uses the same Scala compiler, just adds some useful features on top of it. It is quite main-stream in the Scala community and it should -therefore be very easy for you to install \texttt{amm}. 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 Ammonite can -be achieved with +therefore be very easy for you to install \texttt{amm}. + +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 +Ammonite can be achieved with \begin{lstlisting}[numbers=none,language=Scala] scala> import ammonite.ops._ @@ -61,8 +62,10 @@ \end{lstlisting} \noindent -For loading and accessing code from another Scala file, you can import it -as follows: +The latter writes the string \code{"foo bar"} into the file +\code{"file.name"}, which is located in the current working +directory. For loading and accessing code from another Scala file, you +can import it as follows: \begin{lstlisting}[numbers=none,language=Scala] import $file.name-of-the-file