Skip to content

Commit d78c8ea

Browse files
authored
Merge pull request #91 from Samehadar/patch-1
Sequences And Arrays: Change type of res0: from List to Seq
2 parents 6cf2b60 + 4c661af commit d78c8ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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

src/test/scala/stdlib/SequencesAndArraysSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SequencesAndArraysSpec extends Spec with Checkers {
7070
check(
7171
Test.testSuccess(
7272
SequencesandArrays.mapValuesSequencesandArrays _,
73-
List("olleh", "dlrow") :: HNil
73+
Seq("olleh", "dlrow") :: HNil
7474
)
7575
)
7676
}

0 commit comments

Comments
 (0)