handouts/pep-ho.tex
changeset 481 e03a0100ec46
parent 476 7550c816187a
child 483 1a51207780e6
equal deleted inserted replaced
480:a623dd1f2898 481:e03a0100ec46
   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