Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

how loop in scala

names.zipWithIndex.foreach { d =>
    println(s"${d._2} is ${d._1}")
}
Source by alvinalexander.com #
 
PREVIOUS NEXT
Tagged: #loop #scala
ADD COMMENT
Topic
Name
8+1 =