--- a/progs/lecture5.scala Tue Dec 07 01:35:00 2021 +0000
+++ b/progs/lecture5.scala Tue Dec 07 23:17:51 2021 +0000
@@ -1,9 +1,36 @@
// Scala Lecture 5
//=================
+// Questions at
+//
+// pollev.com/cfltutoratki576
+
+(n, m) match {
+ case Pat1 =>
+ case _ =>
+}
+
+val delta : (State, Char) => State =
+ { case (Q0, 'a') => Q1
+ case (Q0, 'b') => Q2
+ case (Q1, 'a') => Q4
+ case (Q1, 'b') => Q2
+ case (Q2, 'a') => Q3
+ case (Q2, 'b') => Q2
+ case (Q3, 'a') => Q4
+ case (Q3, 'b') => Q0
+ case (Q4, 'a') => Q4
+ case (Q4, 'b') => Q4
+ case _ => throw new Exception("Undefined") }
+class Foo(i: Int)
+val v = new Foo(10)
+
+case class Bar(i: Int)
+
+val v = Bar(10)