Say we have a simpleList and want to print a specified list range. How is this done in Scala?
val simpleList= List(1, 2, 3, 4, 5)
println(simpleList(0)) //> Value 1
println(simpleList(0:4)) //> No output
Say we have a simpleList and want to print a specified list range. How is this done in Scala?
val simpleList= List(1, 2, 3, 4, 5)
println(simpleList(0)) //> Value 1
println(simpleList(0:4)) //> No output