We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcf4f85 + cc4530f commit 7fb03f1Copy full SHA for 7fb03f1
src/main/scala/stdlib/Lists.scala
@@ -53,7 +53,7 @@ object Lists extends FlatSpec with Matchers with org.scalaexercises.definitions.
53
*/
54
def headAndTailLists(res0: Int, res1: Int, res2: Int) {
55
val a = List(1, 2, 3)
56
- a.headOption should equal(Option(res0))
+ a.headOption should equal(Some(res0))
57
a.tail should equal(List(res1, res2))
58
}
59
0 commit comments