Complex expression

Report a typo

Enter the numeric output of the program below:

val list = List(1, 2, 3, 4)
val set = Set(1, 2, 3)
val map = Map(1 -> 2, 2 -> 3, 3 -> 4, 4 -> 5)
println(map((list ++ set).head))
Enter a number
___

Create a free account to access the full topic