0 votes
in Scala - The Diatonic Syallable by
What is the value of z after executing this code?

 val y = List('a','b')

 val z = y::List('c')

a. List(a,b,c)

b. List(List(a, b), c)

c. List(c,a,b)

d. List(c,List(a,b))

1 Answer

0 votes
by
Correct answer is:-  List(List(a, b), c)
...