Skip to content

Commit e5718dd

Browse files
authored
Change type of res0: from List to Seq
If you try to compile with List[String] you receive type mismatch error: "Error:() type mismatch; found : Seq[String] required: List[String] val r: List[String] = s map {"
1 parent c4bdf29 commit e5718dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/SequencesandArrays.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object SequencesandArrays
6969

7070
/** You can map values in a sequence through a function:
7171
*/
72-
def mapValuesSequencesandArrays(res0: List[String]) {
72+
def mapValuesSequencesandArrays(res0: Seq[String]) {
7373
val s = Seq("hello", "world")
7474
val r = s map {
7575
_.reverse

0 commit comments

Comments
 (0)