We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96670b1 commit 5907132Copy full SHA for 5907132
src/script/scala/progscala3/typelessdomore/Record.scala
@@ -1,6 +1,5 @@
1
// src/script/scala/progscala3/typelessdomore/Record.scala
2
3
-type Record = (String, Double)
4
-def transform(record: Record): Record = (record._1.toUpperCase, 2*record._2)
5
-
+type Rec = (String, Double)
+def transform(record: Rec): Rec = (record._1.toUpperCase, 2*record._2)
6
transform(("hello", 10))
0 commit comments