diff -r 4e221cf587fa -r 0b5f06539a84 handouts/amm-ho.tex --- a/handouts/amm-ho.tex Sun Oct 01 15:25:22 2023 +0100 +++ b/handouts/amm-ho.tex Mon Oct 02 23:10:56 2023 +0100 @@ -73,7 +73,18 @@ \noindent This creates a file \code{amm} which before it can be run might -need some adjustments of the permissions. +need some adjustments of the permissions. Under recent versions of +Windows also have \texttt{curl}, but need a slightly different call: + +\begin{lstlisting}[numbers=none,language={},basicstyle=\ttfamily\small] +$ curl -L https://github.com/com-lihaoyi/Ammonite/releases/\ + download/2.5.9/3.2-2.5.9 --output amm.bat +\end{lstlisting} %% $ + +\noindent +Then you need to run Ammonite with \texttt{.$\backslash$amm} and there +is no need to change any permissions under Windows. + 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 @@ -158,8 +169,11 @@ 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 \url{https://www.handsonscala.com/part-i-introduction-to-scala.html} +free and can be used as a reference, see +\begin{center} +\url{https://www.handsonscala.com/part-i-introduction-to-scala.html} +\end{center} \end{document}