summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeorge Petrov <petrovg@gmail.com>2013-07-29 13:57:44 +0100
committerGeorge Petrov <petrovg@gmail.com>2013-07-29 13:57:44 +0100
commit3cc4c64fb75581a21a2d8d4c2a28f3e83b5cf2f7 (patch)
treec0c5038d956ea6e82e9dd639525d0c3ee46d8057
parent04e50a75fa253f71cf5de0f45d423f06dd9933d2 (diff)
Added header
-rw-r--r--scala.html.markdown11
1 files changed, 11 insertions, 0 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index 783c7ae6..173d271d 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -1,3 +1,9 @@
+---
+language: scala
+author: George Petrov
+author_url: http://www.georgepetrov.com
+---
+
/*
Set yourself up:
@@ -106,6 +112,11 @@ val x = 10
if (x == 1) println("yeah")
if (x == 10) println("yeah")
if (x == 11) println("yeah")
+if (x == 11) println ("yeah") else println("nope")
+
+println(if (x == 10) "yeah" else "nope")
+val text = if (x == 10) "yeah" else "nope"
+
// Object oriented features