MCQs>IT & Programming>Scala>How would you get a List that was the result of appending `5:Int` to a `List(1,2,3)`. The order of the elements in the resulting List is irrelevant.
Scala MCQs
How would you get a List that was the result of appending `5:Int` to a `List(1,2,3)`. The order of the elements in the resulting List is irrelevant.
Answer
Correct Answer: List(1,2,3) :+ 5
Explanation:
Note: This Question is unanswered, help us to find answer for this one