From 3cc4c64fb75581a21a2d8d4c2a28f3e83b5cf2f7 Mon Sep 17 00:00:00 2001 From: George Petrov Date: Mon, 29 Jul 2013 13:57:44 +0100 Subject: Added header --- scala.html.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3