summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeorge Petrov <petrovg@gmail.com>2013-07-29 16:03:49 +0100
committerGeorge Petrov <petrovg@gmail.com>2013-07-29 16:03:49 +0100
commit3f2922d87a1c947eb6e20551846fd1b307984680 (patch)
tree1b3930dcbe1a98bd99311ec306ed0d0cb6e4ac28
parent30c29913bd4d511d728014c21467d5ae3d9069d6 (diff)
Adding some strings and docs links
-rw-r--r--scala.html.markdown33
1 files changed, 28 insertions, 5 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index 8c000177..a1396b4d 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -85,6 +85,10 @@ val s = Set(1, 3, 7)
s(0)
s(1)
+/* Look up the documentation of map here - http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.Map
+ * and make sure you can read it
+ */
+
// Tuples
@@ -128,9 +132,6 @@ val text = if (x == 10) "yeah" else "nope"
// Object oriented features
-class Person
-
-
// Case classes
@@ -162,10 +163,32 @@ kate match { case Person("Kate", _) => "Girl"; case Person("George", _) => "Boy"
// Regular expressions
-
+// TODO
// Strings
+println("ABCDEF".length)
+println("ABCDEF".substring(2, 6))
+println("ABCDEF".replace("C", "3"))
+
+val n = 45
+println(s"We have $n apples")
+
+val a = Array(11, 9, 6)
+println(s"My second daughter is ${a(2-1)} years old")
+
+// Input and output
+
+
+```
+
+## Further resources
+
+[Scala for the impatient](http://horstmann.com/scala/)
+
+[Twitter Scala school(http://twitter.github.io/scala_school/)
+
+[The scala documentation]
-// Input and output \ No newline at end of file
+Join the [Scala user group](https://groups.google.com/forum/#!forum/scala-user) \ No newline at end of file