equal
deleted
inserted
replaced
537 scala> 2 + 3 |
537 scala> 2 + 3 |
538 val res0: Int = 5 |
538 val res0: Int = 5 |
539 \end{lstlisting} |
539 \end{lstlisting} |
540 |
540 |
541 \noindent The answer means that he result of the addition is of type |
541 \noindent The answer means that he result of the addition is of type |
542 \code{Int} and the actual result is 5; \code{res0} is a name that |
542 0\code{Int} and the actual result is 5; \code{res0} is a name that |
543 Scala gives automatically to the result. You can reuse this name later |
543 Scala gives automatically to the result. You can reuse this name later |
544 on, for example |
544 on, for example |
545 |
545 |
546 \begin{lstlisting}[numbers=none,language={}] |
546 \begin{lstlisting}[numbers=none,language={}] |
547 scala> res0 + 4 |
547 scala> res0 + 4 |