You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defreuseTailsLists(res0: Int, res1: Int, res2: Int, res3: String, res4: String, res5: String) {
vald=Nilvalc=3:: d
valb=2:: c
vala=1:: b
a should be(List(res0, res1, res2))
a.tail should be(res3)
b.tail should be(res4)
c.tail should be(res5)
}
The above function in the List Section should be refactored to expect
a.tail should be List(2, 3)
b.tail should be List(3)
c.tail should be List[Int]()
and the argument type should be List[Int]
The text was updated successfully, but these errors were encountered:
The above function in the List Section should be refactored to expect
and the argument type should be
List[Int]
The text was updated successfully, but these errors were encountered: