Skip to content

Commit

Permalink
Merge pull request #91 from Samehadar/patch-1
Browse files Browse the repository at this point in the history
Sequences And Arrays: Change type of res0: from List to Seq
  • Loading branch information
raulraja committed Dec 10, 2017
2 parents 6cf2b60 + 4c661af commit d78c8ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/stdlib/SequencesandArrays.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object SequencesandArrays

/** You can map values in a sequence through a function:
*/
def mapValuesSequencesandArrays(res0: List[String]) {
def mapValuesSequencesandArrays(res0: Seq[String]) {
val s = Seq("hello", "world")
val r = s map {
_.reverse
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/stdlib/SequencesAndArraysSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SequencesAndArraysSpec extends Spec with Checkers {
check(
Test.testSuccess(
SequencesandArrays.mapValuesSequencesandArrays _,
List("olleh", "dlrow") :: HNil
Seq("olleh", "dlrow") :: HNil
)
)
}
Expand Down

0 comments on commit d78c8ea

Please sign in to comment.