What will be the result of accessing tuple element?
val tuple5 = ("a", 1, 2.2, true, "five")
tuple5._2 
Explanation
In Scala, the tuples stared with 1 and not 0. Check the official doccumentation Scala tuples

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Scala
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести