We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2fe38 commit 7315a63Copy full SHA for 7315a63
Upper.scala
@@ -1,2 +1,6 @@
1
-class Upper {
+object Upper {
2
+ def upper(strings: String*) = strings.map(_.toUpperCase)
3
+}
4
+
5
+println(Upper.upper("a", "scala", "test", "from"))
6
0 commit comments