--- a/progs/lecture1.scala Mon Nov 07 12:58:00 2016 +0000
+++ b/progs/lecture1.scala Tue Nov 08 10:30:42 2016 +0000
@@ -1,8 +1,4 @@
-// toList, toSet, toDouble
-// function definition
-// smart strings
-// maps
-// recursion
+
// webpages
@@ -27,6 +23,8 @@
//====================
println("test")
+
+
val tst = "This is a " + "test"
println(tst)
@@ -82,6 +80,9 @@
if (n == 0) 1 else n * fact(n - 1)
+
+
+
def fact2(n: BigInt): BigInt =
if (n == 0) 1 else n * fact2(n - 1)
@@ -93,6 +94,8 @@
//a recursive function
def gcd(x: Int, y: Int): Int = 2 //???
+//**String Interpolations**
+//=========================
//**Assert/Testing**