handouts/pep-ho.tex
changeset 478 0e6ca70496c1
parent 473 be818c5a67d4
child 480 a1151868a997
equal deleted inserted replaced
477:2403c931a32f 478:0e6ca70496c1
   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