diff options
author | George Petrov <petrovg@gmail.com> | 2013-07-29 14:09:11 +0100 |
---|---|---|
committer | George Petrov <petrovg@gmail.com> | 2013-07-29 14:09:11 +0100 |
commit | d346342ad608849bdd1bcae7973bbff571225ba1 (patch) | |
tree | 09f130e4350ebf0c38964b90a3fbcd74ac0f6810 | |
parent | 3cc4c64fb75581a21a2d8d4c2a28f3e83b5cf2f7 (diff) |
Added some pattern matching
-rw-r--r-- | scala.html.markdown | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index 173d271d..d6524a8f 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -121,3 +121,25 @@ val text = if (x == 10) "yeah" else "nope" // Object oriented features +class Person + + + +// Case classes + +case class Person(name:String, phoneNumber:String) + +Person("George", "1234") == Person("Kate", "1236") + + + +// Pattern matching + + +// Regular expressions + + +// Strings + + +// Input and output
\ No newline at end of file |