progs/lecture1.scala
changeset 364 f1a6fa599d26
parent 361 f88b5cec2e5d
child 367 e6ae724255a8
--- a/progs/lecture1.scala	Wed Nov 18 01:54:39 2020 +0000
+++ b/progs/lecture1.scala	Sun Nov 22 03:45:22 2020 +0000
@@ -522,26 +522,3 @@
 // friend.
 
 
-
-
-
-// declarative 
-
-users.filter(_.email.endsWith("@gmail.com"))
-
-// imperative
-
-val result = ListBuffer[User]()
-for(user <- users) {
-    if(user.email.endsWith("@gmail.com")) {
-        result += user
-    }
-}
-result.toList
-
-
-
-
-
-
-