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
Зарегистрируйся сейчас
или Подпишись на будущие тесты