handouts/pep-ho.tex
changeset 265 59779ce322a6
parent 264 ecd989eee8bd
child 269 86a85865e772
--- a/handouts/pep-ho.tex	Wed Mar 20 21:50:20 2019 +0000
+++ b/handouts/pep-ho.tex	Sat Jun 22 08:39:52 2019 +0100
@@ -82,7 +82,7 @@
 \end{quote}
 
 \noindent
-If you are interested there are also experimental backends of Scala
+If you are interested, there are also experimental backends of Scala
 for producing code under Android (\url{http://scala-android.org}); for
 generating JavaScript code (\url{https://www.scala-js.org}); and there
 is work under way to have a native Scala compiler generating X86-code
@@ -159,7 +159,7 @@
 seem to make your life harder, rather than easier, for the small
 programs we will write in this module. They are really meant to be used
 when you have a million-lines codebase, rather than our
-``toy-programs''\ldots{}for example why on earth am I required to create a
+``toy-programs'' we will write in PEP\ldots{}for example why on earth am I required to create a
 completely new project with several subdirectories when I just want to
 try out 20-lines of Scala code? Your mileage may vary though. ;o)
 
@@ -432,6 +432,9 @@
 scala> "12345".length
 scala> List(1,2,1).size
 scala> Set(1,2,1).size
+scala> List(1) == List(1)
+scala> Array(1) == Array(1)
+scala> Array(1).sameElements(Array(1))
 \end{lstlisting}\smallskip
 
 \noindent