Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

how loop in scala

for ((name, count) <- names.zipWithIndex) {
    println(s"$count is $name")
}
Source by alvinalexander.com #
 
PREVIOUS NEXT
Tagged: #loop #scala
ADD COMMENT
Topic
Name
4+6 =