diff -r 499405058cfd -r 97df390d64f5 handouts/amm-ho.tex --- a/handouts/amm-ho.tex Fri Sep 24 13:35:42 2021 +0100 +++ b/handouts/amm-ho.tex Fri Sep 24 23:50:30 2021 +0100 @@ -7,7 +7,7 @@ %http://worldline.github.io/scala-cheatsheet/ \begin{document} -\fnote{\copyright{} Christian Urban, King's College London, 2020} +\fnote{\copyright{} Christian Urban, King's College London, 2020, 2021} \section*{Scala in 6CCS3CFL} @@ -43,7 +43,7 @@ \begin{lstlisting}[language={},numbers=none,basicstyle=\ttfamily\small] $ amm Loading... -Welcome to the Ammonite Repl 2.3.8 (Scala 2.13.3 Java 9) +Welcome to the Ammonite Repl 2.4.0 (Scala 2.13.6 Java 9) scala> 1 + 2 res0: Int = 3 \end{lstlisting} %% $ @@ -51,7 +51,15 @@ \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}. +therefore be very easy for you to install \texttt{amm}. If you work under +a Unix-like system, a sure way to install the right version of Ammonite +is by using \texttt{curl}: + +\begin{lstlisting}[numbers=none,language={},basicstyle=\ttfamily\small] +$ curl -L https://github.com/com-lihaoyi/Ammonite/ + releases/download/2.4.0/2.13-2.4.0 --output amm +\end{lstlisting} + 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